Teach you how to perfectly save text edited by the HTML editor

Source: Internet
Author: User

Sometimes on the page to edit a paragraph of text, there are pictures, want to save a copy to the Word document inside, but after the copy and paste found the format and did not save it, today to teach you how to complete the HTML editor to save the text (can contain pictures, but the picture must be an absolute path, Word can only recognize the table layout, and it does not recognize the div layout.

First, create a new, blank Word document, both 2003 and 2007. Then, open the Click "Save As ..." button, save it in HTML format, and then open the saved HTML file with EditPlus or another text editor and you'll see something:

<HTMLxmlns:v= "URN:SCHEMAS-MICROSOFT-COM:VML"Xmlns:o= "Urn:schemas-microsoft-com:office:office"xmlns:w= "Urn:schemas-microsoft-com:office:word"xmlns:m= "HTTP://SCHEMAS.MICROSOFT.COM/OFFICE/2004/12/OMML"xmlns= "Http://www.w3.org/TR/REC-html40"><Head><Metahttp-equiv=content-typecontent= "text/html; charset=windows-1252"><Metaname=progidcontent=word.document><Metaname=generatorcontent= "Microsoft Word page"><Metaname=originatorcontent= "Microsoft Word page"><Linkrel=file-listhref= "111_files/filelist.xml">

<!--omit some of the content here-

</HTML>

We can see that the middle part is the HTML code, delete the middle code, instead, the following content:

 <  html  xmlns:v  = "URN:SCHEMAS-MICROSOFT-COM:VML"  xmlns:o  = "Urn:schemas-microsoft-com:office:office"  xmlns:w  = "Urn:schemas-microsoft-com:office:word"  xmlns:m  = "HTTP://SCHEMAS.MICROSOFT.COM/OFFICE/2004/12/OMML"  xmlns  = "Http://www.w3.org/TR/REC-html40"  > 

< / html >

Then rename the HTML file, modify the suffix named Doc (to docx with errors, do not know why), and then double-click the effect that opens in Word and displays the page in Web view. Of course, you can still display it when you switch views.

So, the text and code that we've processed in the HTML editor, plus the one that's saved in. doc format, can be opened in a Word document, and the format is exactly the same as the page, except for some layouts.

Teach you how to perfectly save text edited by the HTML editor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.