Just change the onClick() method to convert the text inplace. In the window, expand the drop-down menu following Save as type and choose Web Page (.htm. Click File > Save As and select a place to save the file. Web Developers: feel free to use this code on your own forms to clean your user’s input (although you’d probably be better off doing it server-side). Microsoft Word itself has the feature allowing you to convert Word to HTML. (If you want to clean up Word HTML, rather than just create plain text, I suggest that you use HTML Tidy with the “clean” and “Word 2000” boxes checked.) Paste your input into the top box, press clean, and the input will be scrubbed and sent to the lower box. They expect plain (“Latin”) text.Ī solution: this script converts text copied from MS word into plain text. The problem is that this carries all of the high characters (“smart-quotes” and the like) that MS Word makes straight through to the site - and most sites aren’t set up to handle them. ![]() ![]() Most of the time when I’m writing content for the web (for this blog, or a forum comment, or whatever), I’ll write in Microsoft Word for the spell check and other features that aren’t in a standard textarea widget, and then I’ll cut and paste into the form on the site. To use Dreamweaver to convert the Word doc into HTML, open up a new web page. This Word-cleaning functionality is showing up in more and more web editors, but people might still find this useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |