Wikipedia:AutoEd/htmltowikitext.js: Difference between revisions
Content deleted Content added
Per request on talk |
Fixes |
||
Line 2:
function autoEdHTMLtoWikitext(str) {
// <b> and <i> tags
str = str.replace(/<B[ ]*>((?:[^<>]|<[a-z][^<>]*\/>|<([a-z]+)(?:| [^<>]*)>[^<>]*<\/\
str = str.replace(/<I[ ]*>((?:[^<>]|<[a-z][^<>]*\/>|<([a-z]+)(?:| [^<>]*)>[^<>]*<\/\
// </br>, <\br>, <br\>, <BR />, ...
str = str.replace(/<[\\\/]+BR[\\\/\s]*>/gim, '<br />');
|