skill
unanchored
escape-html
JS: HTML entity escaping for safe SSR. Used in commons/helios layout templates.
javascripthtmlescapingxsssecurityskill
Body
const esc=s=>String(s??"").replace(/[&<>"']/g,c=>({"&":"&","<":"<",">":">","\"":""","'":"'"}[c]));
Provenance
Cryptographic details
| id | reg_sk_escape_html |
| content sha256 | 7888d7cd9d60e75a6a25fdc35e898595cc4db9eeb6a2fb5b951ea9b7355d2ffb |
Execute via API
POST /api/execute
{ "ref": "reg_sk_escape_html" }
// or by hash prefix:
{ "ref": "7888d7cd9d60e75a" }
Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.