Skip to content

Commit 6d3d456

Browse files
committed
Fixing <ref>s with attrs
1 parent e709f6a commit 6d3d456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Snippet.body.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static function parseText( $text ) {
2323
$text = preg_replace( '/\[\[([^|]+?)\]\]/', '$1', $text ); // remove non-piped links
2424
$text = preg_replace( '/\[\[[^|\n]+?\|([^|\n]+?)\]\]/', '$1', $text ); // remove piped links
2525

26-
$text = preg_replace( '/<ref>.+?<\/ref>/', '', $text ); // remove <ref> tags
26+
$text = preg_replace( '/<ref[^>]*>.+?<\/ref>/', '', $text ); // remove <ref> tags
2727

2828
$text = preg_replace( '/<.+?>/', '', $text ); // remove html elements
2929

0 commit comments

Comments
 (0)