note 14550 deleted from function.htmlspecialchars by nlopess
| From: | nlopess@php.net | Date: | Sun, 05 Sep 2004 08:41:41 +0000 |
| Subject: | note 14550 deleted from function.htmlspecialchars by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76058@lists.php.net to get a copy of this message | ||
Note Submitter: bcicek at phreaker dot net
----
For turkish chars you can freely use this function.
function htmltext($pString){
$trans=get_html_translation_table(HTML_ENTITIES);
$trans["&"] = "&";
return strtr($pString,$trans);
}
but you have to change nls to br before using this function.exmpl.
$message = nl2br(htmltext($message));