NAME

Slovo::Validator - additional validator filters

FILTERS

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

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