Open CedCannes opened 4 years ago
While updating an old project, I realized that urlize wasn't working the way it used to before.
before (long time ago): "c'est qu'il m'énerve" -> "c-est-qu-il-m-enerve"
"c'est qu'il m'énerve" -> "c-est-qu-il-m-enerve"
now : "c'est qu'il m'énerve" -> "cest-quil-menerve"
"c'est qu'il m'énerve" -> "cest-quil-menerve"
// Remove apostrophes which are not used as quotes around a string $text = preg_replace('/(\\w)\'(\w)/', '${1}${2}', $text);
it's not really a problem. but as I don't want to change the old urls of the site I'm going to turn the "'" into " " before using urlize.
But maybe there could be an option to decide if we want to make the apostrophes disappear or turn them into a dash. :wink:
While updating an old project, I realized that urlize wasn't working the way it used to before.
before (long time ago):
"c'est qu'il m'énerve" -> "c-est-qu-il-m-enerve"
now :
"c'est qu'il m'énerve" -> "cest-quil-menerve"
it's not really a problem. but as I don't want to change the old urls of the site I'm going to turn the "'" into " " before using urlize.
But maybe there could be an option to decide if we want to make the apostrophes disappear or turn them into a dash. :wink: