> Hi there,
> I am putting text into a mysql db from a form field. I do include the
> linebrakes with line2br.
> Now I would like to create an interface where I could load the text into the
> form again to edit it. Unfortunatelly it includes some wired chars like \br
> into the text. How can I get rid of that?
> Thanx for any help,
> Andy

It sounds like you are using nl2br to all breaks _before_ you insert your 
data into a table. Don't do this, for this very reason.

Only use nl2br _after_ you extract the data to format it for display in a 
browser; you don't need to use nl2br to display the data in a <TEXTAREA> 
of course.

David Robley
Temporary Kiwi!

Quod subigo farinam

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to