Using older version of Indicative or @adonisjs/validator?. Click here to access the old version documentation.



Escapes HTML entities. Useful when you want to avoid XSS attacks.

This method will only remove &, ", ', < and > characters. For advance escaping make use of a 3rd party library like he and create your own sanitization rule