Stop WordPress from replacing BR tag
-
Hello,
All my comments look extremely stuffed because WordPress replaces empty lines (as in Enter/Return pressed 2 times) with
<br/>.For some ridiculous reason
<br/>tags don’t work.<br>works just fine.All I need to do is stop WordPress from replacing blank spaces with
<br/>and instead making it replacing it with<br>.I tried passing comment-text() into a variable and did a str_replace on that and then finally echoed the variable but it didn’t work (I’m no PHP guru).
Removing wpautop didn’t work either. Added a tag from mysql but that got replaced with a
<br/>tag in HTML.This is not plugin or theme related as I tried multiple themes and disabled all plugins to no avail…
Is there a solution for this?
Regards.
The topic ‘Stop WordPress from replacing BR tag’ is closed to new replies.