Remove attributes
Maizzle can automatically remove attributes from your HTML. By default, it removes emptystyle and class attributes that are sometimes left over after the CSS inlining process.
Usage
You may configure which attributes to remove through theremoveAttributes array.
Empty values
To remove attributes that have no value, specify the attribute name as a string:config.js
emails/example.html
Maizzle automatically removes empty
style and class attributes, no need to add them yourself.By name and value
If you know the exact name and value, you may pass them to the array as an object:config.js
With a RegExp
You may also use a regular expression for thevalue.
All attributes with a value matching the regex will be removed:
config.js
API
app.js