Forum: Ruby on Rails Sanitizing Characters In Pasted Text

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7e5be8d0d2537a6f6f00aada5541881e?d=identicon&s=25 sross (Guest)
on 2005-11-29 04:29
(Received via mailing list)
Because Microsoft Word changes quotes to curly quotes, double dashes to
en-dashes, etc., copied / pasted text from Word into a textarea can
contain
characters not rendered the same in all browsers. Put more bluntly, when
they paste from Word, it looks like cr@p on my Mac.

I¹ve seen this question asked before, but never seen the answer. Is
there
any translation table between Word¹s special characters and HTML named
entities?

Thanks
6c27f78ab0eee78732ae54e8b8718b84?d=identicon&s=25 david.felstead (Guest)
on 2005-11-29 07:27
(Received via mailing list)
Hi Steve,

There's a Perl script called "demoronizer" that does something like
this - perhaps you could use it as a reference:
http://vsbabu.org/mt/archives/2002/11/03/demoronizer.html

Cheers!

-DF
This topic is locked and can not be replied to.