Skip to content

zudov/html-email-validate

Repository files navigation

html-email-validate

Validating an email address against HTML standard.

Travis

Hackage Stackage LTS Stackage Nightly

The library allows to validate and parse an email address as it's defined in HTML standard.

Note that HTML specification of a valid email address is a 'willful violation' of RFC 5322. If you want to validate an address against RFC 5322 you should use email-validate.

Usage

Prelude> import Text.Html.Email.Validate 
Prelude Text.Html.Email.Validate> :set -XOverloadedStrings 
Prelude Text.Html.Email.Validate> isValidEmail "mailto@@mail.to"
False
Prelude Text.Html.Email.Validate> parseEmail "mailto@mail.to"
Right mailto@mail.to

For more examples see documentation on Hackage.

About

Validating an email adress against HTML standard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published