Does WeChat Mini Programs have a method similar to vue's v-html?

does WeChat Mini Programs have a method similar to vue"s v-html to render a piece of content containing tags

now the demand is: I have made a chat Mini Program, I want to identify the link in the chat message, put a tag on it and add a special color, click and link to webview. Now is how to render it after I put on the tag


what you want should be < rich-text > components


https://blog.csdn.net/zclenge.
this should help you


first of all, no.

secondly, it is not recommended to do so. Mini Program doesn't even plan to support a full HTML. You should understand that Mini Program's design idea is semi-HTML and semi-native, with the lowest development cost to get the best results, so complete HTML support must get half the result with twice the effort.

so if you should use webview, you should use webivew,. If you parse manually, you should parse manually.

Menu