zip-text-nodes:合并具有相同textContent的2个元素的DOM

时间:2021-03-15 19:27:29
【文件属性】:
文件名称:zip-text-nodes:合并具有相同textContent的2个元素的DOM
文件大小:6KB
文件格式:ZIP
更新时间:2021-03-15 19:27:29
TypeScript 压缩文本节点 合并具有相同textContent的2个元素的DOM。 给定2个元素: Hello, < strong> world! 和: < em> Hello , world! 它们合并为: < em> Hello , < strong> world! 在元素的内容上进行一些转换并依次合并结果或还原原始标记时,这很有用。 const base = < > I live in < a xss=removed> Italy < / a > < / > ; const grammar = highlightVerb ( base ) ; // <>I live in Italy</> // e.g. the link was lost zipTextNodes ( b
【文件预览】:
zip-text-nodes-master
----.gitignore(48B)
----package.json(1KB)
----.npmrc(19B)
----.travis.yml(202B)
----tsconfig.json(134B)
----test.js(2KB)
----license(1KB)
----index.ts(2KB)
----readme.md(2KB)
----.gitattributes(34B)
----.editorconfig(171B)

网友评论