There are two functions in PHP3/4/5 named
1.string strip_tags ( string str [, string allowable_tags] )
2.string htmlspecialchars ( string string [, int quote_style [, string charset]] )
If you use
$name = strip_tags("<b>Zia</b>") and insert into $name in Database, the output will be "Zia"
but
If you use
$name = htmlspecialchars("<b>Zia</b>") and insert into $name in Database, the output will be "<b>Zia</b>" means bold "Zia"
Please let me know whether it works.
Regards,
Zia
|