Jason wrote:
>Text = reReplace(Text, "[^\x20-\x7E]", "", "all");

That'll also strip tabs, newlines and carriage returns, which probably isn't 
desired.

Use [^\t\n\r\x20-\x7E] to keep them.


However, this shouldn't be necessary - doesn't TinyMCE already have the ability 
to clean-up MS Word pastes? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346185
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to