note 79860 added to ref.tidy
| From: | TorokAlpar at Gmail dot com | Date: | Sun, 16 Dec 2007 10:32:44 +0000 |
| Subject: | note 79860 added to ref.tidy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133631@lists.php.net to get a copy of this message | ||
Be aware that if you pass the tidy object directly to create a DOM object, there will be a memory
leak!
<?php
tidy_phrase_string($string);
tidy_clean_repair($tidy);
$dom = new DOMDocument();
$dom->loadXML($tidy);
?>
id wrong !
use $content = tidy_get_output($tidy); and use $content with the dom . I had this problem with
PHP5.0.x (x=13 i think, to lasy :) to check )
----
Server IP: 69.147.83.197
Probable Submitter: 79.113.131.82
----
Manual Page -- http://www.php.net/manual/en/ref.tidy.php
Edit -- https://master.php.net/note/edit/79860
Del: integrated -- https://master.php.net/note/delete/79860/integrated
Del: useless -- https://master.php.net/note/delete/79860/useless
Del: bad code -- https://master.php.net/note/delete/79860/bad+code
Del: spam -- https://master.php.net/note/delete/79860/spam
Del: non-english -- https://master.php.net/note/delete/79860/non-english
Del: in docs -- https://master.php.net/note/delete/79860/in+docs
Del: other reasons-- https://master.php.net/note/delete/79860
Reject -- https://master.php.net/note/reject/79860
Search -- https://master.php.net/manage/user-notes.php