Tag: htmlspecialchars_decode
-
PHP does not generating output as html
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(“<“, “>”,’&’,’\”,'”‘,'<‘,’>’),…