<?php
$str = "<p>this -> "</p>\n";
echo htmlspecialchars_decode($str); // <p>this -> "</p>
// note that here the quotes aren't converted
echo htmlspecialchars_decode($str, ENT_NOQUOTES); // <p>this -> "</p>
?>
Reference:
http://php.net/manual/en/function.htmlspecialchars-decode.php
No comments:
Post a Comment