【文件属性】:
文件名称:html-pipe:可插拔HTML管道
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-07 22:50:11
JavaScript
html管道
可插拔HTML管道
安装
与一起安装:
$ component install automattic/html-pipe
例子
< p> this is a < span xss=removed> wonderful span> example of our html < em> pipeline! em> p>
var p = document . getElementsByTagName ( 'p' ) [ 0 ] ;
var out = htmlpipe ( p )
. pipe ( sanitize )
. pipe ( highlight )
. run ( )
// unwrap spans with inline styles
function sanitize ( el ) {
i
【文件预览】:
html-pipe-master
----index.html(1KB)
----Readme.md(3KB)
----test()
--------html-pipe.js(8KB)
----History.md(712B)
----Makefile(229B)
----component.json(373B)
----.gitignore(17B)
----index.js(3KB)
----package.json(430B)