MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / parseHtml

Function parseHtml

webiojs/src/models/output.ts:61–69  ·  view source on GitHub ↗
(html_str: string)

Source from the content-addressed store, hash-verified

59
60// 将html字符串解析成jQuery对象
61function parseHtml(html_str: string) {
62 let nodes = $.parseHTML(html_str.trim(), null, true);
63 let elem;
64 if (nodes.length != 1)
65 elem = $(document.createElement('div')).append(nodes);
66 else
67 elem = $(nodes[0]);
68 return elem;
69}
70
71let Html = {
72 handle_type: 'html',

Callers 2

output.tsFile · 0.85
render_tplFunction · 0.85

Calls 2

appendMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…