Skip to content

Commit 8ce1663

Browse files
authored
Merge pull request #66 from Kdecherf/fix/figure
2 parents d5330a9 + eb72a31 commit 8ce1663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Readability.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Readability implements LoggerAwareInterface
157157
// replace excessive br's
158158
'/<br\s*\/?>\s*<p/i' => '<p',
159159
// replace empty tags that break layouts
160-
'!<(?:a|div|p)[^>]+/>!is' => '',
160+
'!<(?:a|div|p|figure)[^>]+/>!is' => '',
161161
// remove all attributes on text tags
162162
//'!<(\s*/?\s*(?:blockquote|br|hr|code|div|article|span|footer|aside|p|pre|dl|li|ul|ol)) [^>]+>!is' => "<\\1>",
163163
//single newlines cleanup

0 commit comments

Comments
 (0)