Page 1 of 1

Removing <br /> tags from Entries

Posted: Thu Apr 12, 2007 11:54 am
by crimson
Hi, apologies if this is the wrong section.

I've installed serendipity as my blog, and I quite like it, however I do have one small issue with it. I use the basic editor for posting entries, however when I enter my text as follows:
<p>Paragraph about stuff</p>

<p>More stuff, as useless as the above stuff</p>
The generated HTML is:
<p>Paragraph about stuff</p><br />
<br />
<p>More stuff, as useless as the above stuff</p>
I was hoping you could help point me in the direction of the code that replaces newlines with <br />. I looked in the database and the original markup is saved there (newlines, not brs), so It must be when the entry is displayed, but I can't find the correct function.

Thanks for your time

Re: Removing <br /> tags from Entries

Posted: Thu Apr 12, 2007 1:03 pm
by garvinhicking
Hi!

This is the "nl2br" text markup plugin you can remove in your list of event plugins. :)

HTH,
Garvin

Posted: Thu Apr 12, 2007 1:22 pm
by crimson
Ah, so it is.

Guess I was too eager to get into the code, thanks :)