markup-de-crapulator
markup-de-crapulator copied to clipboard
Feature request: `[…]` for stripped code
When I manually gut code from a sample, I like to leave a placeholder for it. For example, if I stumble across the following offensiveness
<div data-monkey="code" style="width:42px" aria-label="wrong" ng-poop="yup">
Foo
</div>
I might convert it to:
<div […] aria-label="wrong" […]>
Foo
</div>
Because in that scenario I am calling out the wrong thing, and care little for the just plain stupid things. I also do not add […] for every single thing I yank, just for contiguous things I yank.
I would like the ability to replace everything I might otherwise strip. The replacement could be a pre-filled configurable value such as […].
Or is this what Matthew was sorta suggesting? Add custom list of attributes to abbreviate (or allow any attribute to be abbreviated/stripped) #19
It's not what Matt suggested, but that may be useful for you anyway. It's work in progress for me right now.

What you're asking for could be quite challenging. I'll have a think about it.