How can I avoid double line breaks (<br><br>
) in a text field (field type: text unformatted, long)?
Users write text into this text field. When they hit Enter twice, the result is:
<br><br>
.
But <br><br>
is not themable with css, the height of <br>
can NOT be set with css.
Therefore <br><br>
should be avoided and paragraphs <p>
used instead of it. <br><br>
should never be saved to database.
How can double <br><br>
be avoided or replaced with <p>
before the the field is saved?
Convert line breaks into HTML (i.e. <br> and <p>)
option enabled?