{"id":"html-entities-encode","version":"1.0.0","description":"Escape text for safe insertion into HTML text or quoted attribute values and return the encoded text.","supported_operations":["encode HTML entities","escape text for HTML","make text safe for HTML attribute","encode ampersands and angle brackets","escape quoted HTML attribute value","convert text to HTML references"],"unsupported_operations":["sanitize an HTML document","URL or JavaScript escaping","choose quote delimiters"],"semantics":["Uses WHATWG HTML Living Standard snapshot 2026-11-05, sections 13.5 and 13.2.5.72–80.","Pins the named-reference table as whatwg-html-entities-2026-11-05-0155d7c70a78.","This is not a full HTML parser or a sanitizer for untrusted markup."],"limits":{"max_input_bytes":8192,"max_output_bytes":32768,"max_iterations":16384},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["text","context"],"properties":{"text":{"type":"string","maxLength":8192},"context":{"type":"string","enum":["text","attribute"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text","standard_version","data_version"],"properties":{"text":{"type":"string","maxLength":32768},"standard_version":{"type":"string"},"data_version":{"type":"string"}}},"examples":[{"input":{"text":"<A & B>","context":"text"},"output":{"text":"&lt;A &amp; B&gt;","standard_version":"WHATWG HTML Living Standard snapshot 2026-11-05, sections 13.5 and 13.2.5.72–80","data_version":"whatwg-html-entities-2026-11-05-0155d7c70a78"}},{"input":{"text":"say \"hi\"","context":"attribute"},"output":{"text":"say &quot;hi&quot;","standard_version":"WHATWG HTML Living Standard snapshot 2026-11-05, sections 13.5 and 13.2.5.72–80","data_version":"whatwg-html-entities-2026-11-05-0155d7c70a78"}}],"execute_url":"/v1/tools/html-entities-encode/versions/1.0.0/execute"}