Skip to content

Commit

Permalink
Merge pull request #66 from Kdecherf/fix/figure
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r authored Oct 29, 2021
2 parents d5330a9 + eb72a31 commit 8ce1663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Readability.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Readability implements LoggerAwareInterface
// replace excessive br's
'/<br\s*\/?>\s*<p/i' => '<p',
// replace empty tags that break layouts
'!<(?:a|div|p)[^>]+/>!is' => '',
'!<(?:a|div|p|figure)[^>]+/>!is' => '',
// remove all attributes on text tags
//'!<(\s*/?\s*(?:blockquote|br|hr|code|div|article|span|footer|aside|p|pre|dl|li|ul|ol)) [^>]+>!is' => "<\\1>",
//single newlines cleanup
Expand Down

0 comments on commit 8ce1663

Please sign in to comment.