note 35899 deleted from function.htmlentities by sniper
| From: | sniper@php.net | Date: | Thu, 02 Oct 2003 01:04:11 +0000 |
| Subject: | note 35899 deleted from function.htmlentities by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57567@lists.php.net to get a copy of this message | ||
Note Submitter: Yucel
----
I wanted to send inner html code to a next page, so I decided to use htmlentities(). The biggest
challenge was the Turkish characters. So I came up with this function. It simply replaces these
chars with Turkish ones. If you don't have a better idea, you can use this in other unsupported
languages.
function unhtml_tur($text) {
$text=str_replace("Ý", "Ý", $text);
$text=str_replace("Þ", "Þ", $text);
$text=str_replace("ð", "ð", $text);
$text=str_replace("ý", "ý", $text);
$text=str_replace("þ", "þ", $text);
return $text;
}
I hope it helps..