note 89334 added to tidy.examples.basic

From: Date: Tue, 03 Mar 2009 20:50:41 +0000
Subject: note 89334 added to tidy.examples.basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-151418@lists.php.net to get a copy of this message
Cleaning an html fragment (OO support seems to half-arsed for now) This will ensure all tags are closed, without adding any html/head/body tags around it. <? $tidy_config = array( 'clean' => true, 'output-xhtml' => true, 'show-body-only' => true, 'wrap' => 0, ); $tidy = tidy_parse_string($html_fragment, $tidy_config, 'UTF8'); $tidy->cleanRepair(); echo $tidy; ?> ---- Server IP: 64.71.164.2 Probable Submitter: 206.146.96.226 ---- Manual Page -- http://www.php.net/manual/en/tidy.examples.basic.php Edit -- https://master.php.net/note/edit/89334 Del: integrated -- https://master.php.net/note/delete/89334/integrated Del: useless -- https://master.php.net/note/delete/89334/useless Del: bad code -- https://master.php.net/note/delete/89334/bad+code Del: spam -- https://master.php.net/note/delete/89334/spam Del: non-english -- https://master.php.net/note/delete/89334/non-english Del: in docs -- https://master.php.net/note/delete/89334/in+docs Del: other reasons-- https://master.php.net/note/delete/89334 Reject -- https://master.php.net/note/reject/89334 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151418) next »