Note Submitter: anupmca at ymail dot com
----
I have seen many developers scratching their head complaining nl2br not working .
Simple reason behind this is mysql_real_escape_string which adds extra \ to \n. so it becomes \\n its not a literal its a string. Its better if you use nl2br before mysql_real_escape_string. Dont use striptags function after this which will remove <BR/> as its a html tag.
Why cant we modify the base function by supporting it for \\n . It will be better way.
Thanks,
Anup B.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.