Jump to content

Stripping <BR>'s


ravix76

Recommended Posts

I'm coding an Admin interface which uses the nl2br command to preserve

<br>'s

on entered text. I then have an edit function which pulls up the saved text into an editable text box (for editting by the admin if that makes sense?). Problem is that when the save text is displayed, it shows the

<BR>'s

as text (which is fine) but then when saved again, it doubles up on all the

<BR>'s.

 

Is there a kind of reverse NL2BR command that I can use to display the saved text so the admin doesn't see the

<BR>'s

as text?

Or, as ever with PHP, is there an easier way?

 

Cheers

 

Rav

Link to comment
https://forums.phpfreaks.com/topic/53278-stripping-s/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.