HTML cleanup tool
Reduces a HTML document (or fragment) to basic HTML tags and attributes – clean HTML
What exactly does it do?
- Fixes or removes non-well formed tags and attributes (e.g. adds alt attributes to images if missing)
- Converts the markup to HTML5 (if it is XHTML for example)
- Reduces the markup to: <a href>, <body>, <br>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <head>, <hr>, <html>, <i>, <img src width height alt>, <li>, <ol>, <p>, <ruby>, <strong>, <table>, <tbody>, <td colspan rowspan>, <th colspan rowspan>, <title>, <tr>, <ul>
- Replaces: <b> to <strong>
- Reformats the HTML (line breaks, indents)
Example
Input: <p class="funny" onlick="alert('LOL')">bla bla</p>
Will beautify HTML to: <p>bla bla</p>