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; when inserted into script, it will also automatically execute the internal JavaScript code. Be careful to prevent XSS when using it.
Using Template Syntax
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: