Add a core utility to strip magic keys and other keys from a component #2472
Labels
Type: Enhancement
For any feature request or suggestion that isn't a bug fix
Milestone
Mithril version:
Browser and OS:
Project:
Is this something you're interested in implementing yourself? Yes
Description
Continuation of #1986
Specifically, I'm suggesting bringing in this utility into core. Already just got bit writing a built-in utility, and I know not everyone reads the docs closely. Plus, having a core utility that contradicts this doesn't really make sense, and I don't expect everyone to read the docs closely enough to pick this up. So instead, we should just provide a built-in utility to strip all that crap out for people.
Why
Well, if you want to know how easy it is to get bit without realizing it, take a look at #2471.
Possible Implementation
https://github.com/isiahmeadows/mithril-helpers/blob/master/censor.js with the alterations needed to fuse into core. (It's 324 bytes min+gzip standalone.)
Open Questions
The text was updated successfully, but these errors were encountered: