MCPcopy
hub / github.com/node-webot/weixin-robot / formatHTML

Function formatHTML

lib/utils.js:53–55  ·  view source on GitHub ↗

* 格式化HTML

(html)

Source from the content-addressed store, hash-verified

51 * 格式化HTML
52 */
53function formatHTML(html){
54 return html.replace(/</g, '&lt;').replace(/>/g, '&gt;');
55}
56
57/**
58 * 去除HTML中的无用字符

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected