{"category":"encoding","endpoint":"https://setget.net/v1/tools/html-entities","examples":[{"input":{"text":"<p>Caf\u00e9 & \"tea\"</p>"},"output":{"replaced":8,"text":"&lt;p&gt;Caf&eacute; &amp; &quot;tea&quot;&lt;/p&gt;"}},{"input":{"scope":"non-ascii","style":"decimal","text":"Caf\u00e9 <b>\u20ac5</b>"},"output":{"replaced":2,"text":"Caf&#233; <b>&#8364;5</b>"},"title":"Only non-ASCII characters, leaving the markup alone"},{"input":{"action":"decode","text":"&lt;p&gt;Caf&eacute; &amp; &#8364;5 &#x1F600;&lt;/p&gt;"},"output":{"text":"<p>Caf\u00e9 & \u20ac5 \ud83d\ude00</p>"}}],"input_schema":{"additionalProperties":false,"properties":{"action":{"default":"encode","description":"Encode characters as entities, or decode entities to characters.","enum":["encode","decode"],"type":"string"},"scope":{"default":"all","description":"What to encode: \"special\" is only & < > \" and ', \"non-ascii\" is only characters outside plain ASCII, \"all\" is both.","enum":["all","special","non-ascii"],"type":"string"},"style":{"default":"named","description":"How to write entities: named where a name exists (&eacute;), decimal (&#233;) or hex (&#xE9;).","enum":["named","decimal","hex"],"type":"string"},"text":{"description":"The text to escape, or text with entities to decode.","examples":["<p>Caf\u00e9 & \"tea\"</p>"],"maxLength":1000000,"type":"string"}},"required":["text"],"type":"object"},"keywords":["html entities","html escape","html unescape","html encode","html decode","escape html","&amp;","&nbsp;","entity decoder","special characters html"],"related":["url-encode","string-escape-bytes","base64"],"slug":"html-entities","summary":"Escape text as HTML entities, named or numeric, or decode entities back to characters.","tier":"inline","title":"HTML entity encoder and decoder","url":"https://setget.net/tools/html-entities"}
