Content deleted Content added
No edit summary |
No edit summary |
||
Line 27:
//var containsHTML = /</.test(realTitleHTML); // contains ANY HTML
var containsTooMuchHTML = /</.test( realTitleHTML.replace(/<\/?(sub|sup|small)>/g, "") ); // contains HTML that will be ignored when cut-n-pasted as a wikilink
alert(containsTooMuchHTML);
alert(realTitleHTML.replace(/<\/?(sub|sup|small)>/g, ""));
// calculate whether the title is pasteable
|