cocur / slugify

Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.
MIT License
2.87k stars 252 forks source link

Replace `&` with ` and ` by default #269

Open ThomasLandauer opened 4 years ago

ThomasLandauer commented 4 years ago

Currently, b&c gets slugified to b_c, but I think b_and_c would be better. So what about adding a & line to every language ruleset, replacing it with the word and in that language?

BTW: @harsain does the same in https://github.com/cocur/slugify/issues/148#issuecomment-278846935