Join GitHub today
[2.1] [WIP] Zend\I18n\Filter\SlugUrl - Made a filter to convert text to slugs #2190
EDIT: can you add a unit test to have all parts of a real slug?
Input value is "C'est l'histoire de la contrefaçon !", and the excepted value must be "cest-lhistoire-de-la-contrefacon".
yes, in Portuguese for example we have characters that do not have in English.
This filter will convert these special characters to an ASCII character nearest "á" to "a" or "é" to "e"
$str = "Alimentação";
referring to the code, now intend to improve it because it was a plugin for Zend 1.x did not do much better on it (yet), I would like to know if there is a community interest in having this filter, because I always I needed something.
What do you think, we disregard this "pull request", I make the changes and resend?
That's why I was talking about languages with non-Latin alphabet.
Do you know that your can update a PR?