Site icon Hip-Hop Website Design and Development

What operate removes apostrophes when making a slug?

I’m attempting to transform a publish title to a slug. I used sanitize_title_with_dashes, considering that is what WordPress makes use of. Nonetheless, if my publish title has an apostrophe in it, sanitize_title_with_dashes doesn’t strip out the apostrophe. As a substitute, it escapes the apostrophe with a backslash.

For instance, if I take advantage of the default publish editor to create a publish named “Bob’s Boutique”, WordPress core will accurately create the slug as “bobs-boutique”.

If I attempt to convert “Bob’s Boutqiue” to a publish slug utilizing sanitize_title_with_dashes in features.php, the result’s “bob’s-boutique”.

Is there a further operate that WordPress makes use of when making slugs that strips out apostrophes?