The function encodeForHTMLAttribute encodes the symbol '@' too. However, if we have such an element:
<input id="email" autocomplete="off" type="email" placeholder="[email protected]" class="form-control" name="email" value="[email protected]" maxlength="100" autofocus="">
then encodeForHTMLAttribute encodes '[email protected]' it to user@example.com.
What is the right way to encode this value so it looks like [email protected]?
Thanks,
The function
encodeForHTMLAttributeencodes the symbol '@' too. However, if we have such an element:then
encodeForHTMLAttributeencodes '[email protected]' it touser@example.com.What is the right way to encode this value so it looks like
[email protected]?Thanks,