note 98829 deleted from function.filter-input by danbrown
| From: | danbrown@php.net | Date: | Fri, 09 Jul 2010 16:53:19 +0000 |
| Subject: | note 98829 deleted from function.filter-input by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170841@lists.php.net to get a copy of this message | ||
Note Submitter: phillip dot copley at gmail dot com
----
I'm not so sure you can edit the filters' behavior, but what about running through the
comment after and replacing the encoded \n with the break tags? Something like this (untested):
function encoded_nl_to_br($string) {
$newString = str_replace(" ", "<br />", $string);
return $newString;
}