用于HTML消毒的Libs [英] Libs for HTML sanitizing

查看:174
本文介绍了用于HTML消毒的Libs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个html消毒器,我可以调用每个API来清理从我的webapp获得的字符串。有没有一些有用的易于使用的库可用?有没有人知道可能有一两个?

I'm looking for a html sanitizer which I can call per API to sanitise strings which I get from my webapp. Are there some useful easy to use libs available? Does anyone knows maybe one or two?

我不需要一些大的东西,它只能找到未关闭的标签并关闭它们。

I don't need something big it just must be able to find unclosed tags and close them.

推荐答案

JTidy 可以帮助您。

这篇关于用于HTML消毒的Libs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆