node-slug icon indicating copy to clipboard operation
node-slug copied to clipboard

Unable to turn off symbols replacement

Open tsunday opened this issue 7 years ago • 0 comments

Hi,

I tried with custom options object and the usage looks like this:

const slugifiedValue = slug(value, { lower: true, symbols: false })

The library still convetes symbols like < or <3 to their representations ('less', 'love'). Options dict isn't completely ignored, because lower option is fine. The problem is with symbols option - it's not taken into consideration by the current implementation.

Environment: React/Webpack project executed in Chrome browser

tsunday avatar Sep 10 '18 05:09 tsunday