{"category":"web","endpoint":"https://setget.net/v1/tools/html-format","examples":[{"input":{"text":"<div><p>Hello <b>world</b></p><ul><li>One<li>Two</ul></div>"},"output":{"text":"<div>\n  <p>Hello <b>world</b></p>\n  <ul>\n    <li>One\n    <li>Two\n  </ul>\n</div>"}},{"input":{"indent":4,"text":"<!DOCTYPE html><html><body><pre>  a\n  b</pre><br></body></html>"},"output":{"text":"<!DOCTYPE html>\n<html>\n    <body>\n        <pre>  a\n  b</pre>\n        <br>\n    </body>\n</html>"},"title":"Preformatted text is not touched"}],"input_schema":{"additionalProperties":false,"properties":{"indent":{"default":2,"description":"Spaces per indentation level.","maximum":8,"minimum":1,"type":"integer"},"text":{"description":"The HTML to format.","examples":["<div><p>Hello <b>world</b></p><ul><li>One<li>Two</ul></div>"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["html","format","beautify","pretty print","indent html","tidy","prettify"],"related":["html-minify","xml-format","css-format","html-to-text"],"slug":"html-format","summary":"Re-indent HTML so the nesting is easy to read, leaving pre, textarea, script and style content untouched.","tier":"inline","title":"HTML formatter","url":"https://setget.net/tools/html-format"}
