当前位置:网站首页>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>来改变命名空间,从而使得所有注释符可以生效。
边栏推荐
- Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
- A brief introduction to the CheckBox component of the basic components of Flutter
- Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
- Bubble sort, selection sort, insertion sort, binary search directly
- MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
- 【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
- (Line segment tree) Summary of common problems of basic line segment tree
- errno error code and meaning (Chinese)
- RESTful api接口设计规范
- Vue项目通过node连接MySQL数据库并实现增删改查操作
猜你喜欢
递归实现汉诺塔问题
binom二项分布,
[Paper reading] Mastering the game of Go with deep neural networks and tree search
No qualifying bean of type 问题
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
C language from entry to such as soil, the data store
C language confession code?
qlib架构
高等数学---第九章二重积分
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
随机推荐
Vue项目通过node连接MySQL数据库并实现增删改查操作
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
(树) 最近公共祖先(LCA)
interprocess communication
[C language] Three-pointed chess (classic solution + list diagram)
MySQL数据库必会的增删查改操作(CRUD)
进程间通信
两个地址池r2负责管地址池r1负责管dhcp中继
Bubble sort, selection sort, insertion sort, binary search directly
[Swift] Customize the shortcut that pops up by clicking the APP icon
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
How Zotero removes auto-generated tags
The BP neural network
MySQL模糊查询可以使用INSTR替代LIKE
Know the showTimePicker method of the basic components of Flutter
专访 | 阿里巴巴首席技术官程立:云+开源共同形成数字世界的可信基础
MySQL基础操作
MySQL数据库增删改查(基础操作命令详解)
"A daily practice, happy water problem" 1331. Array serial number conversion
(线段树) 基础线段树常见问题总结