Converting HTML entities to characters
I was trying to use WordPress post titles as email subject headers in such a way: $subject = get_the_title(); wp_mail( $to, $subject, $message); However this became a problem when the post title included smart quotes, em-dash, ellipsis and the likes of them. My email subject ended up looking like this: Hey – This is my Post’s Title where … Continue reading Converting HTML entities to characters
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed