Bug #12812 Updated: nl2br, get_html_translation_table and strtr
| From: | jeroen@php.net | Date: | Sun, 19 Aug 2001 21:29:58 +0000 |
| Subject: | Bug #12812 Updated: nl2br, get_html_translation_table and strtr | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63779@lists.php.net to get a copy of this message | ||
ID: 12812
Updated by: jeroen
Reported By: kapp@bigping.de
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux (SuSE Based)
PHP Version: 4.0.6
New Comment:
"was my fault" referred to wrong type.
Anyway, html_translation_table is about entities (things like &something;), and not about
html-tags.
nl2br has nothing to with html_trans_table.
Previous Comments:
------------------------------------------------------------------------
[2001-08-19 14:40:46] sniper@php.net
user error.
------------------------------------------------------------------------
[2001-08-19 07:11:37] kapp@bigping.de
was my fault, sorry!
------------------------------------------------------------------------
[2001-08-17 10:11:58] derick@php.net
Making this a feature request
------------------------------------------------------------------------
[2001-08-17 10:10:05] kapp@bigping.de
since php 4.0.5 with
nl2br I get an XHTML1.0 compatible <br /> tag back.
So far so good, but if I have to translate it back with strtr (and get_html_translation_table) it
won't be recognized.
No problem, I know the workaround (adding a '"<br />" =>
"\n"' to the translation array) but it would be nice to be fixed.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12812&edit=1