问题
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