View Source W3cValidators.NuValidator (w3c_validators v0.1.0)

W3C HTML markup validator service wrapper

Summary

Functions

Validate the markup of a string

Validate the markup of an URI

Functions

@spec validate_text(String.t()) :: {:ok, term()} | {:error, term()}

Validate the markup of a string

Examples

iex> W3cValidators.NuValidator.validate_text("<html>test</html>")
{:ok, result}
@spec validate_uri(String.t()) :: {:ok, term()} | {:error, term()}

Validate the markup of an URI

Examples

iex> W3cValidators.NuValidator.validate_uri("https://www.spkdev.net/")
{:ok, result}