Clean Microsoft Word Pasted Text using JavaScript
Here is the function I wound up writing that does the job fairly well (as far as I can tell anyway). I am certainly open for improvement suggestions if anyone has any. Thanks. function cleanWordPaste( in_word_text ) { var tmp = document.createElement(“DIV”); tmp.innerHTML = in_word_text; var newString = tmp.textContent||tmp.innerText; // this next piece converts line … Read more