note 51196 added to ref.tidy

From: Date: Wed, 23 Mar 2005 10:56:16 +0000
Subject: note 51196 added to ref.tidy
Groups: php.notes 
Request: Send a blank email to php-notes+get-86832@lists.php.net to get a copy of this message
If you need to tidy Word 2000/XP/2003 'HTML' you may need to run it through the following regular expressions first: $reg = "</?[[:alpha:]]+:[[:alnum:]]+[^>]*>"; $html = ereg_replace($reg,"",$html); $reg = "</?\?[^>]*>"; $html = ereg_replace($reg,"",$html); We found tidy fell over when it hit XML PI's and other Word junk which the above should remove. ---- Manual Page -- http://www.php.net/manual/en/ref.tidy.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51196 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51196&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51196&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51196&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51196&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51196&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51196&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86832) next »