We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5330a9 + eb72a31 commit 8ce1663Copy full SHA for 8ce1663
src/Readability.php
@@ -157,7 +157,7 @@ class Readability implements LoggerAwareInterface
157
// replace excessive br's
158
'/<br\s*\/?>\s*<p/i' => '<p',
159
// replace empty tags that break layouts
160
- '!<(?:a|div|p)[^>]+/>!is' => '',
+ '!<(?:a|div|p|figure)[^>]+/>!is' => '',
161
// remove all attributes on text tags
162
//'!<(\s*/?\s*(?:blockquote|br|hr|code|div|article|span|footer|aside|p|pre|dl|li|ul|ol)) [^>]+>!is' => "<\\1>",
163
//single newlines cleanup
0 commit comments