convert reserved characters to html entities
[...] = optional ... = your value
[var $... = ]call htmlspecialchars $val=…[;$flags=…][;$encoding=…][;$double_encoding=…]
$flags=ENT_QUOTES (single quotes are also converted)
$encoding =... charset encoding
for other options for flags and encoding settings see htmlspecialchars on php.net
$double_encode=0 do not re encode existing html entities (default is to encode everything)
Show as text
Reload
input = "foobar"
output = <span style='color:red'>"foobar"</span>
actual output = &lt;span style=&#039;color:red&#039;&gt;&quot;foobar&quot;&lt;/span&gt;