html = html.replace(/\$/g, '$');
// replace special characters in links
- html = html.replace(/<a href="(.*?[^>]?)��(.*?[^>]?)">/gi, '<a href="$1®$2">');
+ html = html.replace(/<a href="(.*?[^>]?)®(.*?[^>]?)">/gi, '<a href="$1®$2">');
if (this.opts.replaceDivs) html = this.clean.replaceDivs(html);
if (this.opts.linebreaks) html = this.clean.replaceParagraphsToBr(html);
if (this.utils.isCurrentOrParent('PRE'))
{
- html = html.replace(/���/g, '"');
- html = html.replace(/���/g, '"');
- html = html.replace(/���/g, '\'');
- html = html.replace(/���/g, '\'');
+ html = html.replace(/”/g, '"');
+ html = html.replace(/“/g, '"');
+ html = html.replace(/‘/g, '\'');
+ html = html.replace(/’/g, '\'');
return this.clean.getPreCode(html);
}
html = $div.html();
// remove ms word's bullet
- html = html.replace(/��/g, '');
+ html = html.replace(/·/g, '');
html = html.replace(/<p class="Mso(.*?)"/gi, '<p');
// classes
html = html.replace(/<img src="webkit-fake-url\:\/\/(.*?)"(.*?)>/gi, '');
// bullets
- html = html.replace(/<p>���([\w\W]*?)<\/p>/gi, '<li>$1</li>');
+ html = html.replace(/<p>•([\w\W]*?)<\/p>/gi, '<li>$1</li>');
// FF fix
if (this.utils.browser('mozilla'))
},
restoreSelectionMarker: function(html)
{
- html = html.replace(/<span id="selection-marker-([0-9])" class="redactor-selection-marker" data-verified="redactor">���<\/span>/g, '<span id="selection-marker-$1" class="redactor-selection-marker" data-verified="redactor">���</span>');
+ html = html.replace(/<span id="selection-marker-([0-9])" class="redactor-selection-marker" data-verified="redactor"><\/span>/g, '<span id="selection-marker-$1" class="redactor-selection-marker" data-verified="redactor"></span>');
return html;
},
else
{
this.$textarea.height(height).show().focus();
+ console.debug(height);
+ console.debug(this.$textarea[0].outerHTML);
this.$textarea.on('keydown.redactor-textarea-indenting', this.code.textareaIndenting);
$(window).scrollTop(scroll);