Sublime Forum

Manipulating Sublime text to remove HTML Attributes

#1

This is my first forum posting so if this is overly broad, posted in the wrong place, or just doesn’t really belong on the forum at all then you have my sincere apologies. However I’ve come across a problem today that seems like it should be easy manageable by sublime text however I have no idea how to approach it.
Essentially I’m having to reformat a load of old HTML that has in line styles and other such horrible things. Now if I was working in a console in Chrome I could quite happily use Jquery to get rid of all the style attributes and return plain old html with no attributes. But without going out and looking for a clever plugin that’s already been made to do this for me how would someone efficiently get Sublime Text to do this for them?
I’m always aspiring to learn more however at this point in time I have no appreciation at all of how sublime is put together or how Python as a language works so it may well be it was overly optimistic to aim to be able to do something like this, but any advice on how to achieve this and/or suggested resources on learning how to use Sublime Console to achieve some basic tasks akin to this would be very much appreciated.

0 Likes

#2

“Tag” package includes a commnad to remove tag attributes from HTML.

0 Likes