8 ms·
My name contains Ø, and im guessing i would not be able to enter that with your method. I would consider that mangling my name if i had to write o or oe.
by DuckyC 7y ago
My name contains Ø, and im guessing i would not be able to enter that with your method. I would consider that mangling my name if i had to write o or oe.
- NohatCoder 7y agoNo, escape means keep, in HTML for instance Ø would become Ø escaped, but it is still there visible, same as every other character.
- hombre_fatal 7y agoThis kind of thinking is how your users end up getting emails from your buggy service like "Hello Østein & friends, ..." and your JSON API consumers encounter the same silly output. Don't escape input. Escape based on output. Escaping doesn't mean anything until you've also specified an output format. It's not always HTML.
- deleted 7y ago[deleted]
- NohatCoder 7y agoYou are grossly misrepresenting my post, I have said nothing about whether the escaping should be applied to input or output, please edit or delete your comment.