NAME

Slovo::Validator - additional validator filters

FILTERS

Slovo::Validator inherits all filters from Mojo::Validator and implements the following new ones.

slugify

$v->required('alias', 'slugify')->size(0, 255);

Generate URL slug for bytestream with "slugify" in Mojo::Util.

xml_escape

$c->validation->optional(title => xml_escape => 'trim')->size(10, 255);

Uses "xml_escape" in Mojo::Util to escape unsafe characters. Returns the escaped string.

SEE ALSO

Mojolicious::Validator, "Form-validation" in Mojolicious::Guides::Rendering