User:Interiot/js/RealTitle.js: Difference between revisions

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)>/gi, "") ); // contains HTML that will be ignored when cut-n-pasted as a wikilink
alert(realTitleHTML);
alert(realTitleHTML.replace(/<\/?(sub|sup|small)>/gi, ""));
 
// calculate whether the title is pasteable