Some post titles will have certain characters that should not be part of a URL. This commit removes these unwanted characters for a cleaner generated URL.
Take this hypothetical post title for example:
What's up with"bagels"?: Aha! A complete guide."
The recent changes would generate the url:
whats-up-with-bagels-aha-a-complete-guide
Before it generated the following:
what's-up-with-\"bagels\"?-aha!-a-complete-guide.
I tested the other functions that uses the encode-string-to-url function. Everything seems to be working properly.
Tell me what you guys think. Or if there are other characters that should be removed when generating the URL.
Some post titles will have certain characters that should not be part of a URL. This commit removes these unwanted characters for a cleaner generated URL.
Take this hypothetical post title for example:
The recent changes would generate the url:
Before it generated the following:
I tested the other functions that uses the
encode-string-to-url
function. Everything seems to be working properly.Tell me what you guys think. Or if there are other characters that should be removed when generating the URL.