Closed wmtamit closed 5 years ago
What should be the output?
output :- s?bi in indicative doc give escape remove <,> but my cash it don't give output like this
Can you share the exact code. I think you are also using the slug
sanitization rule and that is converting >
to GT
get sanitizationRules () {
return {
name: 'trim|escape',
number: 'trim|escape',
swift_code: 'trim|escape',
email: 'normalize_email|escape',
primary_contact_no: 'trim|escape',
secondary_contact_no: 'trim|escape',
fax_no: 'trim|escape',
...addressValidation.sanitizationRules
}
}
i use escape like this
Added a test for same in the newer version and seems to be working as expected. https://github.com/poppinss/indicative-rules/commit/937733dcff63e5cc20382ceda145c9873e036734
if i try to use escape in name and i write the name like this s>?bi so give me a result like this S Gt Bi .