(pieces, ...substitutions)
| 1000 | |
| 1001 | // Tagged template function |
| 1002 | function encodeHTML(pieces, ...substitutions) { |
| 1003 | let result = pieces[0] |
| 1004 | for (let i = 0; i < substitutions.length; ++i) { |
| 1005 | result += htmlUtil.escape(substitutions[i]) + pieces[i + 1] |
| 1006 | } |
| 1007 | |
| 1008 | return result |
| 1009 | } |
| 1010 | |
| 1011 | function fixRef(elem, base, branch) { |
| 1012 | ['href', 'src'].forEach(attr => { |
no outgoing calls
no test coverage detected