-
Notifications
You must be signed in to change notification settings - Fork 110
Description
I'm trying a very simple test as we look at moving from the outdated awesome-slugify to python-slugify. For backward compatibility reasons we are trying to match its present behavior.
For the data involved this can be accomplished after jumping through a few small hoops, but not all of them can be accomplished within python-slugify using the options available.
One hoop is trivial (you can't seem to force the conversion of , to - short of pre-replacing the comma with something else.)
However, the other hoop is more odd: I can't seem to disable HTML entity decoding.
In [1]: slugify.slugify('1-209-3-Ž', entities=True)
Out[1]: '1-209-3-z'
In [2]: slugify.slugify('1-209-3-Ž', entities=False)
Out[2]: '1-209-3-z'
If entities isn't what mediates this conversion, what does, and is it configurable? Currently (like commas) replacing #& with something like _ seems to be the only way to disable that behavior when necessary.