User:Erutuon/scripts/footnoteCleanup.js: Difference between revisions

Content deleted Content added
or thus
added more things to escape
Line 34:
};
// Escape ...
// ref tags.
contents = escape(
contents,
"<ref[^>]*>[^<]+<\/ref>"
);
// footnote templates
contents = escape(
contents,
"\{\{(?:sfn|efn|rfn)[^\}]+\}\}"
);
// citation needed
contents = escape(
contents,
"\{\{(?:[Cc]itation needed|[Cc]n|[Ff]act|[Cc]b|[Cc]tn|[Rr]ef\?)[^\}]+\}\}"
);