Removing <br /> tags from Entries

Discussion corner for Developers of Serendipity.
Post Reply
crimson
Regular
Posts: 7
Joined: Thu Apr 12, 2007 11:44 am

Removing <br /> tags from Entries

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Removing <br /> tags from Entries

Post by garvinhicking »

Hi!

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

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
crimson
Regular
Posts: 7
Joined: Thu Apr 12, 2007 11:44 am

Post by crimson »

Ah, so it is.

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