]) data-tagblock=\"redactor\"(.*?[^>])>', 'gi'), '
');\n\t\t\t\t\thtml = html.replace(new RegExp('<(.*?) data-verified=\"redactor\"(.*?[^>])>', 'gi'), '<$1$2>');\n\t\t\t\t\thtml = html.replace(new RegExp('
])\\srel=\"(.*?[^>])\"(.*?[^>])>', 'gi'), '');\n\t\t\t\t\thtml = html.replace(new RegExp('
])\\srel=\"(.*?[^>])\"(.*?[^>])>', 'gi'), '
');\n\t\t\t\t\thtml = html.replace(new RegExp('
])\\sstyle=\"\" (.*?[^>])>', 'gi'), '
');\n\t\t\t\t\thtml = html.replace(new RegExp('
])\\sstyle (.*?[^>])>', 'gi'), '
');\n\t\t\t\t\thtml = html.replace(new RegExp('(.*?)', 'gi'), '$1');\n\t\t\t\t\thtml = html.replace(/ data-save-url=\"(.*?[^>])\"/gi, '');\n\n\t\t\t\t\t// remove image resize\n\t\t\t\t\thtml = html.replace(/])>([\\w\\W]*?)
<\\/span>/gi, '$3
');\n\t\t\t\t\thtml = html.replace(/])>(.*?)<\\/span>/gi, '');\n\t\t\t\t\thtml = html.replace(/])>(.*?)<\\/span>/gi, '');\n\n\t\t\t\t\t// remove font tag\n\t\t\t\t\thtml = html.replace(//gi, '');\n\t\t\t\t\thtml = html.replace(/<\\/font>/gi, '');\n\n\t\t\t\t\t// tidy html\n\t\t\t\t\thtml = this.tidy.load(html);\n\n\t\t\t\t\t// link nofollow\n\t\t\t\t\tif (this.opts.linkNofollow)\n\t\t\t\t\t{\n\t\t\t\t\t\thtml = html.replace(/])>/gi, '');\n\t\t\t\t\t\thtml = html.replace(/])>/gi, '');\n\t\t\t\t\t}\n\n\t\t\t\t\t// reconvert inline\n\t\t\t\t\thtml = html.replace(/\\sdata-redactor-(tag|class|style)=\"(.*?[^>])\"/gi, '');\n\t\t\t\t\thtml = html.replace(new RegExp('<(.*?) data-verified=\"redactor\"(.*?[^>])>', 'gi'), '<$1$2>');\n\t\t\t\t\thtml = html.replace(new RegExp('<(.*?) data-verified=\"redactor\">', 'gi'), '<$1>');\n\n\t\t\t\t\treturn html;\n\t\t\t\t},\n\t\t\t\tonPaste: function(html, setMode)\n\t\t\t\t{\n\t\t\t\t\thtml = $.trim(html);\n\n\t\t\t\t\thtml = html.replace(/\\$/g, '$');\n\n\t\t\t\t\t// convert dirty spaces\n\t\t\t\t\thtml = html.replace(//gi, '');\n\t\t\t\t\thtml = html.replace(/ <\\/span>/gi, ' ');\n\t\t\t\t\thtml = html.replace(/]*>\\t<\\/span>/gi, '\\t');\n\t\t\t\t\thtml = html.replace(/]*>(\\s| )<\\/span>/gi, ' ');\n\n\t\t\t\t\tif (this.opts.pastePlainText)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn this.clean.getPlainText(html);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!this.utils.isSelectAll() && typeof setMode == 'undefined')\n\t\t\t\t\t{\n\t\t\t\t\t\tif (this.utils.isCurrentOrParent(['FIGCAPTION', 'A']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn this.clean.getPlainText(html, false);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (this.utils.isCurrentOrParent('PRE'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thtml = html.replace(/\u201D/g, '\"');\n\t\t\t\t\t\t\thtml = html.replace(/\u201C/g, '\"');\n\t\t\t\t\t\t\thtml = html.replace(/\u2018/g, '\\'');\n\t\t\t\t\t\t\thtml = html.replace(/\u2019/g, '\\'');\n\n\t\t\t\t\t\t\treturn this.clean.getPreCode(html);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (this.utils.isCurrentOrParent(['BLOCKQUOTE', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thtml = this.clean.getOnlyImages(html);\n\n\t\t\t\t\t\t\tif (!this.utils.browser('msie'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tvar block = this.selection.getBlock();\n\t\t\t\t\t\t\t\tif (block && block.tagName == 'P')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thtml = html.replace(/
/gi, '![]()
');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn html;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (this.utils.isCurrentOrParent(['TD']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thtml = this.clean.onPasteTidy(html, 'td');\n\n\t\t\t\t\t\t\tif (this.opts.linebreaks) html = this.clean.replaceParagraphsToBr(html);\n\n\t\t\t\t\t\t\thtml = this.clean.replaceDivsToBr(html);\n\n\t\t\t\t\t\t\treturn html;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tif (this.utils.isCurrentOrParent(['LI']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn this.clean.onPasteTidy(html, 'li');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\t\t\t\t\thtml = this.clean.isSingleLine(html, setMode);\n\n\t\t\t\t\tif (!this.clean.singleLine)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (this.opts.linebreaks) html = this.clean.replaceParagraphsToBr(html);\n\t\t\t\t\t\tif (this.opts.replaceDivs) html = this.clean.replaceDivs(html);\n\n\t\t\t\t\t\thtml = this.clean.saveFormTags(html);\n\t\t\t\t\t}\n\n\n\t\t\t\t\thtml = this.clean.onPasteWord(html);\n\t\t\t\t\thtml = this.clean.onPasteExtra(html);\n\n\t\t\t\t\thtml = this.clean.onPasteTidy(html, 'all');\n\n\n\t\t\t\t\t// paragraphize\n\t\t\t\t\tif (!this.clean.singleLine && this.opts.paragraphize)\n\t\t\t\t\t{\n\t\t\t\t\t\thtml = this.paragraphize.load(html);\n\t\t\t\t\t}\n\n\t\t\t\t\thtml = this.clean.removeDirtyStyles(html);\n\t\t\t\t\thtml = this.clean.onPasteRemoveSpans(html);\n\t\t\t\t\thtml = this.clean.onPasteRemoveEmpty(html);\n\n\n\t\t\t\t\thtml = this.clean.convertInline(html);\n\n\t\t\t\t\treturn html;\n\t\t\t\t},\n\t\t\t\tonPasteWord: function(html)\n\t\t\t\t{\n\t\t\t\t\t// comments\n\t\t\t\t\thtml = html.replace(//gi, '');\n\n\t\t\t\t\t// style\n\t\t\t\t\thtml = html.replace(/