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