html
The html method is used to get or set the HTML code inside the target element.
target 1
origin text
Notes
html is a relatively dangerous method; if a script tag is injected, it will automatically execute the JavaScript code inside. Pay attention to preventing XSS when using it.
Template Syntax Usage
You can also use the :html attribute to set the corresponding HTML value for the target element. This is particularly useful in component rendering.
Rendered html: