4

Maybe I'm just being lazy though.

Maybe I'm just being lazy though.

14 comments

Isn't there an encode that automagically strips all that nonsense?

[–] xyzzy 1 points (+1|-0)

There probably is, but IMHO there shouldn't. An encode should encode and nothing else, no sanitizing, no stripping, no fiddling with encoding.

One tool for one thing. Simple input, simple output. Combine them as alias or function or method or whatever your language likes it to be called.