Rich text rendering method and device, electronic equipment and storage medium
The invention provides a rich text rendering method. The rich text rendering method comprises the following steps: converting original rich text information into a text field with a preset hierarchical structure; conducting recursive analysis on the text fields through a pre-constructed analyzer, ob...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
07.12.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention provides a rich text rendering method. The rich text rendering method comprises the following steps: converting original rich text information into a text field with a preset hierarchical structure; conducting recursive analysis on the text fields through a pre-constructed analyzer, obtaining rich text tags, wherein the text fields comprise hierarchical nested rich text tags; finally, rendering the original rich text information based on the configuration rule of the rich text label. The invention further provides a rich text rendering device, electronic equipment and a computer readable storage medium.
本公开提供了一种富文本渲染方法,包括:将原始富文本信息转换成具有预设层级结构的文本字段。再利用预先构建的解析器对文本字段进行递归解析,获得富文本标签,文本字段包括层级嵌套的富文本标签。最后基于富文本标签的配置规则,渲染原始富文本信息。本公开还提供了一种富文本渲染装置、电子设备及计算机可读存储介质。 |
---|---|
Bibliography: | Application Number: CN202110144657 |