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.
1 parent e709f6a commit 6d3d456Copy full SHA for 6d3d456
Snippet.body.php
@@ -23,7 +23,7 @@ static function parseText( $text ) {
23
$text = preg_replace( '/\[\[([^|]+?)\]\]/', '$1', $text ); // remove non-piped links
24
$text = preg_replace( '/\[\[[^|\n]+?\|([^|\n]+?)\]\]/', '$1', $text ); // remove piped links
25
26
- $text = preg_replace( '/<ref>.+?<\/ref>/', '', $text ); // remove <ref> tags
+ $text = preg_replace( '/<ref[^>]*>.+?<\/ref>/', '', $text ); // remove <ref> tags
27
28
$text = preg_replace( '/<.+?>/', '', $text ); // remove html elements
29
0 commit comments