|
Posted by Pugi! on 05/03/06 12:14
When you want to preserve linefeeds and or carriage returns (/n, /r/n, /r)
from textarea and store it in a database.
I don't want to store a <br /> in the database.
I do want to have the choice of replacing /n and /r with a <br /> when
displaying the data in browser, i guess this is what nl2br is for ? But
according to the comments on the phpmanual the nl2br function isn't that
good.
So what do u do when u want to store text with linefeeds and carriage
returns in database (or do u have to do nothing) ?
What with ι, η ΰ, φ, ...
That's for trusted input by myself, what with input by others ... strip
html-tags and script-tags ?
thanx,
Pugi!
Navigation:
[Reply to this message]
|