note 41837 added to function.htmlspecialchars
| From: | dominikdotbulaj dot com at rn2 dot php dot net | Date: | Fri, 23 Apr 2004 11:59:26 +0000 |
| Subject: | note 41837 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68657@lists.php.net to get a copy of this message | ||
to back string into html just use that function:
function back_to_html($str)
{
$replacement = array(
">" => ">",
"<" => "<",
""" => "\"",
""" => "\"",
"&" => "&",
"'" => "'"
);
$out = strtr($str, $replacement);
return $out;
}
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41837
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41837&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41837&report=yes
Search -- http://master.php.net/manage/user-notes.php