0
有没有实现org.apache.commons.lang.StringEscapeUtils.escapeHtml的任何python模块或代码?org.apache.commons.lang.StringEscapeUtils python
我用Google搜索周围,但只能找到cgi.escape功能不会做同样的事情。
在此先感谢,对于英语遗憾:d
有没有实现org.apache.commons.lang.StringEscapeUtils.escapeHtml的任何python模块或代码?org.apache.commons.lang.StringEscapeUtils python
我用Google搜索周围,但只能找到cgi.escape功能不会做同样的事情。
在此先感谢,对于英语遗憾:d
这是XML而不是HTML,但它可能适合您的需要:Escaping XML
>>> from xml.sax.saxutils import escape
>>>
>>> escape("< & >")
'< & >'
不幸的是这不起作用... 好东西是我发现了一些在http://www.peterbe.com/plog/html-entity-fixer中可用的东西 感谢您的帮助 – 2009-11-06 15:48:05
发现 HTTP解决方案:// www.peterbe.com/plog/html-entity-fixer – 2009-11-06 16:06:31
我发现了一些工作在peterbe.com/plog/html-entity-fixer – 2009-11-10 04:10:44