当前位置:网站首页>prompt.ml/15中<svg>标签使用解释
prompt.ml/15中<svg>标签使用解释
2022-07-31 04:14:00 【树迷了路】

不使用<svg>,返回:
<p class="comment" title=""><!--" data-comment='{"id":0}'></p>
<p class="comment" title="--><script><!--" data-comment='{"id":1}'></p>
<p class="comment" title="-->prompt(1<!--" data-comment='{"id":2}'></p>
<p class="comment" title="-->)</script>" data-comment='{"id":3}'></p>
拿到网页中看一下;

可以看到,由于<script>是原始文本标签,其内部的<!-- --> 变成了文本以至失效;
但由于<svg>和<html>是不同的命名空间,且<svg>支持XML语法格式,在XML中支持<!-- -->注释。
因此得用<svg>来改变命名空间,从而使得所有注释符可以生效。

边栏推荐
- 产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开
- 手把手实现图片预览插件(三)
- RESTful api接口设计规范
- log level and print log note
- Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
- [C language] General method of expression evaluation
- Daily practice of LeetCode - 138. Copy a linked list with random pointers
- 安全20220722
- Reinforcement learning: from entry to pit to shit
- SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
猜你喜欢

type_traits metaprogramming library learning

What is a system?

VScode+ESP32 quickly install ESP-IDF plugin

端口排查步骤-7680端口分析-Dosvc服务

Exsl file preview, word file preview web page method

Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)

MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)

LocalDate addition and subtraction operations and comparison size

Safety 20220712

专访 | 阿里巴巴首席技术官程立:云+开源共同形成数字世界的可信基础
随机推荐
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
three.js 制作3D相册
$parent/$children and ref
[C language] Three-pointed chess (classic solution + list diagram)
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
(六)枚举、注解
Basic knowledge of mysql (2)
beforeDestroy与destroyed的使用
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
[shell basics] determine whether the directory is empty
Safety 20220709
No qualifying bean of type question
(8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
Redis uses LIST to cache the latest comments
three.js make 3D photo album
关于出现大量close_wait状态的理解
RESTful api interface design specification
安全20220709
$attrs/$listeners
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us