note 14550 added to function.htmlspecialchars.php

From: Date: Fri, 03 Aug 2001 13:52:52 +0000
Subject: note 14550 added to function.htmlspecialchars.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16282@lists.php.net to get a copy of this message
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)); http://www.php.net/manual/en/function.htmlspecialchars.php

« previous php.notes (#16282) next »