Just use regular expressions find and replace. No plugin is needed.
Something along the lines of using Find set to:
(<[^<>]+)(class\s*=\s*"[^"<>]+")([^<>]*)(>)
and replace set to:
\1\3\4
which should say look for the start of a tag < followed by one or more characters that are not a < or a >. Followed by a class with optional whitespace then an = then optional whitespace and a " followed by any number of characters that is not a " or < or > followed by an ending " plus any other characters before the ending tag symbol.
I am away from my computer so I can not test that. But we have a sticky thread here about how to use regex plus access to many people much more knowledgable than I to help.
Looks complicated but really it is not when you understand some basic regex.
In addition: Plugins work just fine. And more importantly Sigil does not in any way consider its plugins to be second class citizens. So it is our policy to never pull existing plugins into the main Sigil codebase. We have a moderate but growing number of plugins and we want to do nothing that would discourage anyone from adding more. Basic Sigil already has too many features.
Last edited by KevinH; 05-11-2022 at 06:29 PM.
|