I am trying to transliterate ®, ©, ', and ™ into blank characters meaning completely removing them when they are slugified.
The following is what I tried to do:
var tr = require('transliteration');
var slugify = require('transliteration').slugify;
// replacement attempt
tr("0xAE, 0xFEFF"); // ®
tr("0xA9, 0xFEFF"); // ©
tr("0x2122, 0xFEFF"); // ™
slugify(name, { lowercase: true })
For example, when I use slugify on a name like "ABC®: 123", it transliterates to:
abc-r-123
However, I want the resulting name to be like:
abc-123