note 97984 added to function.nl2br

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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.
----
Server IP: 69.147.83.197
Probable Submitter: 183.78.185.200
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit        -- https://master.php.net/note/edit/97984
Del: integrated  -- https://master.php.net/note/delete/97984/integrated
Del: useless     -- https://master.php.net/note/delete/97984/useless
Del: bad code    -- https://master.php.net/note/delete/97984/bad+code
Del: spam        -- https://master.php.net/note/delete/97984/spam
Del: non-english -- https://master.php.net/note/delete/97984/non-english
Del: in docs     -- https://master.php.net/note/delete/97984/in+docs
Del: other reasons-- https://master.php.net/note/delete/97984
Reject      -- https://master.php.net/note/reject/97984
Search      -- https://master.php.net/manage/user-notes.php
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.