rem: element.innerHTML = element.innerHTML.replace(/<img id="wysiwyg-visual-aid-plugin-p".*>(&nbsp;| )/g, ''); 
add: element.innerHTML = element.innerHTML.replace(/<img id="wysiwyg-visual-aid-plugin-p"([^>]*)>(&nbsp;| )/g, ''); 
context: visual_aid_p = function(element, editor){	this.editor 	= editor;	this.element	= element;	this.style		= 'vertical-align:text-bottom;';	this.turnOn = function()	{		if (HTMLArea.is_gecko) {			var test_html = '<img id="wysiwyg-visual-aid-plugin-p" style="' + this.style + '" src="'+ visual_aid_image_path +'/paragraph.png" />&nbsp;';			element.innerHTML = element.innerHTML + test_html;		} else if (HTMLArea.is_ie) {			var test_html = '<img id="wysiwyg-visual-aid-plugin-p" style="' + this.style + '" src="'+ visual_aid_image_path +'/paragraph.png" />&nbsp;';			element.innerHTML = element.innerHTML + test_html;		}	}	this.turnOff = function()	{		if (HTMLArea.is_gecko) {			element.innerHTML = element.innerHTML.replace(/<img id="wysiwyg-visual-aid-plugin-p".*>(&nbsp;| )/g, '');		} else if (HTMLArea.is_ie) {			var e = '<img id=wysiwyg-visual-aid-plugin-p.*>&nbsp;';			var re = new RegExp(e, "ig");			var new_html = element.innerHTML.replace(re, '');			element.innerHTML = new_html;		}	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/44007192014844b0e4ed4558d5b8f08ea6fd42d3/visual-aid.js/clean/fudge/wysiwyg/plugins/visual_aid/visual-aid.js