note 66066 deleted from function.tidy-repair-string by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 May 2009 12:59:03 +0000 |
| Subject: | note 66066 deleted from function.tidy-repair-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154186@lists.php.net to get a copy of this message | ||
Note Submitter: Atpic.com
----
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;
}