Merge pull request #66 from Kdecherf/fix/figure

pull/68/head 1.2.8
Jérémy Benoist 4 years ago committed by GitHub
commit 8ce1663238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Readability.php

@ -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

Loading…
Cancel
Save