Microsoft word clipboard HTML documentation

廉价感情. 提交于 2021-01-29 13:52:44

问题


I could not find any documentation describing conventions in text/html data in the clipboard resulting from copying part of a word document!

Specifically I want to know what classes like MsoNormal, TableGrid313, MsoTableGrid, MsoHeading9, MsoListParagraph are there! Or does styling information of texts always lay in style attribute of a span element containing the text?


回答1:


The Word round-tip HTML is undocumented as it's not an official Word file format.

It was created to enable round-tripping Word documents for viewing (and some editing) in a browser, many years ago. Even then, it was not documented as its use was for internal Microsoft software. Being HTML, anyone could read and produce it, but MS made an conscious decision to not document it (and not need to put the resources into maintaining that documentation).



来源:https://stackoverflow.com/questions/59610010/microsoft-word-clipboard-html-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!