WeChat applet rich text display control [Parser] (can parse pictures and videos)

Project scenario:

Project scenario: The content edited through a text editor on the PC side may contain pictures, videos, and text styles of the text editor, which need to be displayed in the applet.


Problem Description

The rich-text that comes with the WeChat applet supports too few functions, so I found a plug-inParser

Parser official instructions: https://jin-yufeng.github.io/Parser/#/


Steps for usage:

1. Download the plug-in code and copy it to the component of the project

insert image description here
2. Add in the json file of the page that needs to be referenced

insert image description here

3. Add in the wxml file of the page that needs to be referenced

insert image description here
Show results
insert image description here


insert image description here

Guess you like

Origin blog.csdn.net/qq_44854653/article/details/131725428