X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FMWTidy.php;h=b310862f3f72289d114432016cfc6a2357f2ef88;hb=8d0fff60dd659e02e872e9eee7eeec8666c92628;hp=a108d2beea2cc7d494748846c12c97b958463dff;hpb=bc91ec321a0c57d39709f996fbf9d084c77b3f91;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index a108d2beea..b310862f3f 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -65,7 +65,9 @@ class MWTidyWrapper { // ...and markers $wrappedtext = preg_replace_callback( '/\<\\/?mw:toc\>/', array( &$this, 'replaceCallback' ), $wrappedtext ); - + // ... and tags + $wrappedtext = preg_replace_callback( '/\/s', + array( &$this, 'replaceCallback' ), $wrappedtext ); // Modify inline Microdata and elements so they say and so // we can trick Tidy into not stripping them out by including them in tidy's new-empty-tags config $wrappedtext = preg_replace( '!<(link|meta)([^>]*?)(/{0,1}>)!', '