Permalink
Browse files

PEAR #13839: Missing XHTML empty tags to collapse

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Util/trunk@259125 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
ashnazg committed May 5, 2008
1 parent 009017e commit 5fffcf16eb8b5ff3fbc13ddab0e6d711768577a9
Showing with 2 additions and 1 deletion.
  1. +2 −1 Util.php
View
@@ -423,7 +423,8 @@ function collapseEmptyTags($xml, $mode = XML_UTIL_COLLAPSE_ALL)
{
if ($mode == XML_UTIL_COLLAPSE_XHTML_ONLY) {
return preg_replace(
- '/<(area|base|br|col|hr|img|input|link|meta|param)([^>]*)><\/\\1>/s',
+ '/<(area|base(?:font)?|br|col|frame|hr|img|input|isindex|link|meta|'
+ . 'param)([^>]*)><\/\\1>/s',
'<\\1\\2 />',
$xml);
} else {

0 comments on commit 5fffcf1

Please sign in to comment.