php - Prevent XSS but allow all characters? -
How can I stop the XSS but allow any character to be used? As I write the HTML code to & lt; Html & gt; & Lt; Body & gt; & Lt; H1 & gt; Test & lt; / H1> & Lt; / Html & gt; I can post on a forum such as
, but it will not be rendered as a browser HTML? How can I do this so that it does not change the characters in PHP?
Pass a string through the function:
// Out of HTML as HTML, the output resonates with HTCL's (' body ');
Comments
Post a Comment