python 中的 org.apache.commons.lang.StringEscapeUtils
是否有任何 python 模块或代码实现 org.apache.commons.lang.StringEscapeUtils.escapeHtml ?
我用谷歌搜索但只能找到cgi。转义函数不做同样的事情。
预先感谢,抱歉英语:D
is there any python module or code that implements the org.apache.commons.lang.StringEscapeUtils.escapeHtml ?
exactly the same as in http://commons.apache.org/lang/api/org/apache/commons/lang/StringEscapeUtils.html#escapeHtml(java.lang.String)
i googled around but could only find the cgi.escape function that doesn't do the same thing.
thanks in advance, sorry for the english :D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是针对 XML 而不是 HTML,但它可能适合您的需求:转义 XML
This is for XML and not for HTML, but it might fit your needs: Escaping XML