htmlspecialchars | naveenOS https://www.naveenos.com How may I help you - E-Commerce | Full-Stack Developer Mon, 16 May 2011 12:11:56 +0000 en-US hourly 1 https://wordpress.org/?v=6.7 PHP does not generating output as html https://www.naveenos.com/2011/05/php-does-not-generating-output-as-html https://www.naveenos.com/2011/05/php-does-not-generating-output-as-html#respond Fri, 13 May 2011 12:13:41 +0000 http://naveenos.com/?p=358 In many cases we add content in the database with replacing all html tags into special characters. But it generate problems when we want to show at front side. So here we are giving a best solution to show result as HTML: function __htmlConvertor($str) { $string = str_replace(array("<", ">", '&', ''', '"','<', '>'), array("<", ">",'&','\'','"','<','>'), […]

The post PHP does not generating output as html first appeared on naveenOS.]]>
https://www.naveenos.com/2011/05/php-does-not-generating-output-as-html/feed 0