FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16509&edit=1

ID: 16509
Updated by: daniel.oconnor@gmail.com
Reported By: demrit at gmail dot com
Summary: HTML_Safe for PHP 5.3 strict
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: HTML_Safe
Operating System: Any
Package Version: CVS
PHP Version: 5.3.0
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate



Previous Comments:
------------------------------------------------------------------------

[2009-08-10 19:07:45] demrit

The following patch has been added/updated:

Patch Name: upgrade-support
Revision: 1249927665
URL:
http://pear.php.net/bugs/patch-display.php?bug=16509&patch=upgrade-support&revision=1249927665&display=1

------------------------------------------------------------------------

[2009-08-10 19:06:40] demrit

The following patch has been added/updated:

Patch Name: upgrade-support
Revision: 1249927600
URL:
http://pear.php.net/bugs/patch-display.php?bug=16509&patch=upgrade-support&revision=1249927600&display=1

------------------------------------------------------------------------

[2009-08-10 18:53:20] #0333dd3458d182303ab

Description:
------------
I have upgrade the code to PHP 5.3 E_STRICT support and added feature
for allow tags using setAllowTags() method (it uses array param).

Test script:
---------------
$doc = '<html><body><p>foo bar</p></body></html>';

$safe = new HTML_Safe;
$safe->setAllowTags(array('body'));
$doc = $safe->parse($doc);

Expected result:
----------------
<body><p>foo bar</p></body>

Actual result:
--------------
<p>foo bar</p>

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 11, '09 at 12:52a
activeAug 11, '09 at 12:52a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase