Search code examples
moovweb

How to remove all inline styling attributes using Moovweb


I have just started a site and it has a lot of in-line styling to clean up.

Is there a short cut way to remove the styling beyond doing it line by line?

eg in html.ts there is a remove_all_styles() - > is this possible to extend to remove_all_inline_styles() ?


Solution

  • you can use remove_attributes() to remove all the attributes or remove_class('ClassName') else heir is no such function for removing inline styles