Ticket #709 (closed enhancement: fixed)
Remove Smart Quotes from Word Formatting
|Reported by:||umbrae@…||Owned by:||gogo|
|Severity:||normal||Keywords:||smart, quotes, word, microsoft|
I've found that smart quotes are not formatted for the web with SuperClean. I've included the following code into super-clean.js to clean out smart quotes: (note: I'm unfortunately aware that this is not the right place for this code. However, I could not get it to work under _wordClean for some reason)
I put the following into SuperClean.filterFunctions.remove_colors:
D = D.replace(String.fromCharCode(8216),"'"); D = D.replace(String.fromCharCode(8217),"'"); D = D.replace(String.fromCharCode(8220),"\""); D = D.replace(String.fromCharCode(8221),"\"");
If anyone would like to figure out where this chunk of code should -actually- go and commit it, I think this would be an excellent addition to xinha - this is one of my main complaints with web text editors.