Commit bb01b39a authored by Dries's avatar Dries
Browse files

- Patch #1276042 by chx: preg is used on html.

parent 58a5b82f
......@@ -1079,7 +1079,7 @@ function filter_dom_serialize($dom_document) {
foreach ($body_node->childNodes as $child_node) {
$body_content .= $dom_document->saveXML($child_node);
}
return preg_replace('|<([^> ]*)/>|i', '<$1 />', $body_content);
return $body_content;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment