Whether text of paragraph is input and <br> tag will be remove aft开发者_开发技巧er real_escape_string, how do I whitelist the break tag?
use strip_tag instead. The second parameter is an array of allowed tags
php.net/strip_tags
I manage to use alternative method, nl2br then mysql_real_escape_string and finally use str_replace to allow <br> tag
Is real_escape_string() a user defined function or are you referring to mysql_real_escape_string?
Because mysql_real_escape_string() will escape " to \" but will leave 
<br> alone.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论