to make an HTML tag appear normally on an HTML page without being parsed:
The simplest way there are 3 kinds of
1, the contents of the XMP tag package, the code is as follows:
1 < XMP >< a >xianshi xmp</a></XMP>
2, the contents of the package with textarea tag, the code is as follows:
< Pre >< textarea >< a >woshi textarea</a></textarea></ Pre >
3, escaped <
as <
, >
for>
< Pre > <a>woshi Pre</a></pre>
In addition to the above methods, the H5 can be used <script type="text/html">
or<script type="text/template">来实现,代码如下:
<Scripttype= "text/html"ID= "js_texthtml"style= "Display:block;"> <a>wo shi type="text/html"</a> </Script>
In other words, in Vue, put the code string directly into the {{}}, but note that the label ends with an escape character such as ' <script>var a= ' bb <\/script> ' (without adding the words will be an error)
HTML tag text content is displayed correctly without parsing