Paste in indented code; this will elide/remove attributes. Help below.

Settings

characters
Do not change these attributes by default

Attribute Filtering

Attribute Leave Elide long Elide all Remove

How to use

This will remove attributes from HTML code or elide them (replace their values with ellipses).

  1. Paste some indented HTML code into the text area.
  2. Optionally, you can change…
    • the default cut-off for "long" attribute values using the text box.
    • whether id and role attributes are protected from being elided by default (they can be helpful for "anchoring" oneself in the code).
  3. Choose how you want to filter each value of each attribute; either…
    • leave it alone (the default for short attributes),
    • elide it if it's long (the default for long attributes),
    • elide it anyway, or
    • remove the attribute and value.
  4. Activate the Filter Code button; the code in the text area will be modified accordingly, and re-analysed.
  5. Repeat this process as often as you like.

For indenting code, HTML Formatter is really good.

Please report issues on GitHub.