note 13658 added to function.htmlspecialchars.php

From: Date: Wed, 27 Jun 2001 18:44:04 +0000
Subject: note 13658 added to function.htmlspecialchars.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14704@lists.php.net to get a copy of this message
Just for the other lazy ppl out there - heres a reverse function: $text=ereg_replace('&gt;', '>', $text); $text=ereg_replace('&lt;', '<', $text); $text=ereg_replace('&quot;', "\"", $text); $text=ereg_replace('&amp;', '&', $text); OR: $plaintext=ereg_replace('&amp;', '&', ereg_replace('&quot;', "\"", ereg_replace('&lt;', '<', ereg_replace('&gt;', '>', $htmltext)))); http://www.php.net/manual/en/function.htmlspecialchars.php

« previous php.notes (#14704) next »