² html encoding
-
I have posts that contain special characters like ² and I add post remotely with a scraper (not in the admin menu). I don’t want to add a post if it has the same title in the same category. I am having trouble with the ² in a couple titles. The existing post is stored in the database as ² but the scraper is getting the squared symbol and I need to know how to convert to ² before comparing the titles. I have tried
<?php esc_html( $text ) ?>
but that didn’t work is there another function that wp uses to do the conversion when the post title is added to the database that I can us.
- The topic ‘² html encoding’ is closed to new replies.