Skip to content

Why "encodeForHTMLAttribute" encodes '@' too? #4

@ipeychev

Description

@ipeychev

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&#x40;example.com.
What is the right way to encode this value so it looks like [email protected]?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions