note 66066 added to function.tidy-repair-string

From: Date: Sat, 13 May 2006 16:12:51 +0000
Subject: note 66066 added to function.tidy-repair-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-111237@lists.php.net to get a copy of this message
When using the function tidy_repair_string with the option show-body-only turned on to process pieces of HTML, I had to use trim() to remove the carriage returns that this function at the end of the resulting string. function trimmed_tidy_repair_string($html){ $config["show-body-only"]=true; $html=tidy_repair_string($html,$config,"utf8"); $html=trim($html); return $html; } ---- Server IP: 84.18.202.180 Probable Submitter: 84.9.90.154 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.tidy-repair-string.php Edit -- http://master.php.net/note/edit/66066 Del: integrated -- http://master.php.net/note/delete/66066/integrated Del: useless -- http://master.php.net/note/delete/66066/useless Del: bad code -- http://master.php.net/note/delete/66066/bad+code Del: spam -- http://master.php.net/note/delete/66066/spam Del: non-english -- http://master.php.net/note/delete/66066/non-english Del: in docs -- http://master.php.net/note/delete/66066/in+docs Del: other reasons-- http://master.php.net/note/delete/66066 Reject -- http://master.php.net/note/reject/66066 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111237) next »