rem:  this.addInternalProcessor((/&nbsp;(?!\|)/gi), ""); 
context: WikiEditor.prototype.initCorePlugin = function() {	// External/Internal conversion setup    this.addExternalProcessor((/^\s*(1(\.1)*)\s+([^\r\n]*)$/im), 'convertHeadingExternal');	this.addInternalProcessor((/\s*<h3\s*([^>]*)>([\s\S]+?)<\/h3>/i), 'convertHeadingInternal');	this.addExternalProcessor((/^\s*((\*+)|#)\s+([^\r\n]+)$/im), 'convertListExternal');	this.addInternalProcessor((/\s*<(ul|ol)\s*([^>]*)>/i), 'convertListInternal');	this.addExternalProcessor((/^s*----(\-)*\s*$/gim), '<hr class="line" \/>');	this.addInternalProcessor((/<hr[^>]*>/gi), '----');    // Must remove the html tag format so it won't interfere with paragraph conversion	this.addExternalProcessor((/<%([\s\S]+?)%>/ig), '&lt;%$1%&gt;');    this.addExternalProcessor((/((\s|\S)*)/i), 'convertParagraphExternal');	this.addInternalProcessor((/<\s*p\s*([^>]*)>(.*?)<\s*\/\s*p\s*>/gi), '\r\n$2\r\n');    this.addExternalProcessor((/\[(.*?)(>(.*?))?\]/i), 'convertLinkExternal');	this.addInternalProcessor((/<a\s*([^>]*)(class=\"wikiexternallink\"|class=\"wikilink\")\s*([^>]*)>(.*?)<\/a>/i), 'convertLinkInternal');    this.addExternalProcessor((/\{table\}([\s\S]+?)\{table\}/i), 'convertTableExternal');    this.addInternalProcessor((/<table\s*([^>]*)class=\"wiki-table\"\s*([^>]*)>([\s\S]+?)<\/table>/i), 'convertTableInternal');    this.addExternalProcessor((/\*(.+?)\*/gi), '<b class="bold">$1<\/b>');    this.addExternalProcessor((/__(.+?)__/gi), '<b class="bold">$1<\/b>');    this.addInternalProcessor((/<strong[^>]*>(.*?)<\/strong>/gi), '*$1*');	this.addExternalProcessor((/~~(.+?)~~/gi), '<i class="italic">$1<\/i>');	this.addInternalProcessor((/<em[^>]*>(.*?)<\/em>/gi), '~~$1~~');	this.addExternalProcessor((/--(.+?)--/gi),  '<strike class="strike">$1<\/strike>');	this.addInternalProcessor((/<strike[^>]*>(.*?)<\/strike>/gi), '--$1--');	this.addInternalProcessor((/[#$][a-zA-Z0-9-_.]+\(([^&)]*&quot;[^)]*)+?\)/i), 'convertVelocityScriptsInternal');    this.addInternalProcessor((/&lt;%([\s\S]+?)%&gt;/i), 'convertGroovyScriptsInternal');    // Remove &nbsp;'s    this.addInternalProcessor((/&nbsp;(?!\|)/gi), "");    var charStr = "||||||" +                  "||||||" +                  "||||||" +                  "||||||" +                  "||||||" +                  "||||||" +                  "||||||" +                  "||||||" +                  "?||||||" +                  "|||" +                  // Commercial symbols:                  "?||||?||" +                  "||" +                  //Other characters                  ">|<|&|\"";    var characterEntityStr = "&Agrave;|&Aacute;|&Acirc;|&Atilde;|&Auml;|&Aring;|" +                             "&AElig;|&Ccedil;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|" +                             "&Igrave;|&Iacute;|&Icirc;|&Iuml;|&Ntilde;|&Ograve;|" +                             "&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&Ugrave;|" +                             "&Uacute;|&Ucirc;|&Uuml;|&szlig;|&agrave;|&aacute;|" +                             "&acirc;|&atilde;|&auml;|&aring;|&aelig;|&ccedil;|" +                             "&egrave;|&eacute;|&ecirc;|&euml;|&igrave;|&iacute;|" +                             "&icirc;|&iuml;|&ntilde;|&ograve;|&oacute;|&ocirc;|" +                             "&oelig;|&otilde;|&ouml;|&oslash;|&ugrave;|&uacute;|" +                             "&ucirc;|&uuml;|&yuml;|" +                             // Commercial symbols:                             "&trade;|&copy;|&reg;|&cent;|&euro;|&yen;|" +                             "&pound;|&curren;|" +                             //Other characters                             "&gt;|&lt;|&amp;|&quot;"    var characterEntitys = characterEntityStr.split("|");    var chars = charStr.split("|");    for (var i= 0; i< characterEntitys.length; i++) {        var regExp = new RegExp(characterEntitys[i],'g');        this.addInternalProcessor((regExp), chars[i]);    }    this.setHtmlTagRemover('removeHtmlTags_Groovy');    this.setHtmlTagRemover('removeSpecialHtmlTags');    // Toolbar handlers	this.addToolbarHandler('handleTextButtons');	this.addToolbarHandler('handleListButtons');    this.addToolbarHandler('handleIndentButtons');    this.addToolbarHandler('handleUndoButtons');	this.addToolbarHandler('handleTitlesList');	this.addToolbarHandler('handleLinkButtons');    this.addToolbarHandler('handleTableButtons');    // Add Comands and Fix Commands(workarounds)	this.addCommand('Title', 'titleCommand');	this.addFixCommand('Title', 'fixTitle');	this.addFixCommand("InsertUnorderedList", 'fixInsertUnorderedList');	this.addFixCommand("Indent", 'fixInsertUnorderedList');}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js