Verifies if the input data is a non-empty string. By default, escape > < " and '

  • minnumber the minimum length of the string
  • maxnumber the maximum length of the string
  • htmlbooleanif set to true, we will not remove > and < tags
'use strict';
thorin.validate('STRING', 'inputString', {
   min: 10,
   max: 50
Do you have a question or is something missing?

You can always create a new issue on GitHub or contact one of the core founders by chat.