if some users insert data like
";:<script><html>< // >@@#";
then i Sanitize this data to something like
";:<script><html>< // >@@
before inserting to db
when i print this form db to html
for inside <p> tag its cool but for inside h1 tag is prints as it is
<h1>";:<script><html>< // >@@</h1>
output: ";:<script><html>< // >@@
<p>";:<script><html>< // >@@</p>
output: ";:<script><html>< // >@@#";
now i need to corrent on h1 tag to make similar to <p> tag
thanks