PHP completely filters HTML, JS, CSS and other tags
php valid filter HTML tags. .lt; /script.gt; @is.quot;.Quot;.Quot; $str);
$str = preg_replace (.Quot; @.lt; iframe). T;.Quot; $str);
.Gt;
[/code]
all the regular filter HTML tags, but today it's not good to use. Why? Is the label turn away. For example.Lt; br.Gt; the page shows this. But the source file shows like this: "but we can still handle it, first reverse the content. .
code as follows:
[code]$str= htmlspecialchars_decode ($str); [/code]
the function of htmlspecialchars_decode is to turn the source file into.Lt;.Gt; such a label. Quot; $str); [/code]