Skip to content

Commit

Permalink
No self-closing tags when generating XML
Browse files Browse the repository at this point in the history
AMP does not support them.
  • Loading branch information
mjangda committed Nov 14, 2015
1 parent 93344c7 commit 8ed7167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-amp-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static public function strip( $content ) {
// Only want children of the body tag, since we have a subset of HTML.
$out = '';
foreach ( $body->childNodes as $node ) {
$out .= $dom->saveXML( $node );
$out .= $dom->saveXML( $node, LIBXML_NOEMPTYTAG );
}
return $out;
}
Expand Down

0 comments on commit 8ed7167

Please sign in to comment.