For example, the numeric validator doesn't allow to use a comma (,) for thousand separator.
In some case, you might want to adjust the value before performing validations.
Tiny MCE, CKEditor, Summernote are some popular one.
Since these editors usually generate additional HTML tags, the raw content of input might be different with the value returned by the editor.
For instance, a number containing the spaces such as XXX XXX XXXX (where X presents a digit from 0-9) is treated as invalid US phone number.
By using the transformer option, we can turn this kind of number into a valid one by removing all spaces. A WYSIWYG editor provides a visual way to edit the content of input which mostly is a textarea element.
NET validation controls, you can validate a user's entry against a specific value using logical operators.For example, you can specify that the user's entry is a date after January 1, 1950 or that it is an integer value greater than or equal to zero.The not Empty, string Length validators maybe don't work correctly with the field using a WYSIWYG editor.The following form uses the transformer option to get raw text of the editor before doing validations.The following piece of code is an usage of this option: The phone validator supports phone number in various countries.Despite the fact that it try to support many possible formats of a phone number, it can't cover all or special one which you want it to be a valid phone number.