type containing an exclude field having either a string or RegExp
used to identify characters or strings to be excluded and a replaceWith
field containing a string to use as a replacement for each excluded value
Ex:
constopts = [{exclude: /[\s]+/g, replaceWith:'_'}]; convert.toSafeString('I am an example', opts); // returns 'I_am_an_example'
type containing an
exclude
field having either astring
orRegExp
used to identify characters or strings to be excluded and areplaceWith
field containing astring
to use as a replacement for each excluded valueEx: