markup-de-crapulator icon indicating copy to clipboard operation
markup-de-crapulator copied to clipboard

Feature request: `[…]` for stripped code

Open aardrian opened this issue 4 years ago • 2 comments

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 […].

aardrian avatar Jul 08 '21 20:07 aardrian

It's not what Matt suggested, but that may be useful for you anyway. It's work in progress for me right now. Screenshot 2021-07-08 at 22 02 01

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

lloydi avatar Jul 08 '21 21:07 lloydi