html formatter:通过环绕libxml2并解决其无数错误来执行HTML转换。 这是来自https:gerrit.wikimedia.org的镜像。
HtmlFormatter是从MediaWiki衍生出来的库,该库使您可以将HTML加载到DomDocument中,对其进行操作,然后返回HTML字符串。 用法 use HtmlFormatter \ HtmlFormatter ; // Load HTML that already has doctype and stuff $ formatter = new HtmlFormatter ( $ html ); // ...or one that doesn't have it $ formatter = new HtmlFormatter ( HtmlFormatter :: wrapHT
下载地址
用户评论