I'm confused about jQuerys val
Function. It seems that it encode html special chars when set a value, but jQuerys Documentation tells nothing about.
Is this a Feature from jQuery or is it an internal Browser-Feature?
No, jQuery does not encode html special chars when setting a value with .val
on a textarea or text input field.
$("#d").val(" !@#$%^&*()_+-=<>,./:';¿█");
$("#t").val(" !@#$%^&*()_+-=<>,./:';¿█");