note 35899 added to function.htmlentities

From: Date: Thu, 18 Sep 2003 16:15:40 +0000
Subject: note 35899 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-56708@lists.php.net to get a copy of this message
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.. ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35899 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35899&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35899&report=yes

« previous php.notes (#56708) next »