From 83b798bbabbe048552fba735834c773ac2015aed Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 13 Jun 2017 12:03:56 -0400 Subject: [PATCH] Hide !s', function ( $m ) { + return '' + . $this->replaceCallback( [ $m[2] ] ) + . ''; + }, $wrappedtext ); // Preserve empty li elements (T49673) by abusing Tidy's datafld hack // The whitespace class is as in TY_(InitMap) @@ -78,8 +84,9 @@ class RaggettWrapper { * @return string */ public function postprocess( $text ) { - // Revert back to <{link,meta}> + // Revert back to <{link,meta,style}> $text = preg_replace( '!]*?)(/{0,1}>)!', '<$1$2$3', $text ); + $text = preg_replace( '!<(/?)html-(style)([^>]*)>!', '<$1$2$3>', $text ); // Remove datafld $text = str_replace( '
  • and used in the body for Microdata new-empty-tags: html-meta, html-link, wbr, source, track new-inline-tags: video, audio, bdi, data, time, mark +# html-style is a hack we use to prevent pre-HTML5 versions of Tidy from stripping + + +!! html+tidy +
    + + +
    +!! end -- 2.20.1