Skip to content

ToHTML of ApiDocument: can't convert correctly when document contain char '<' or '>' #3371

@zhangyehong

Description

@zhangyehong

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

9.0

Expected Behavior

When convert a word document to html in plugin,code like the following:
const doc=Api.GetDocument();
const html=doc.ToHTML();
two bugs:
(1) if the document contain char:'<' or '>', these two chars must be converted to html Escape Characters
(2) if the document contain superscript​ , it must be convert to

Actual Behavior

(1) the conversion keep there two chars unchanged
(2) for superscript conversion: it convert to tag

Reproduction Steps

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions