Menu
`function replace_text($text) {
$text = str_replace(“I’m”, “my name”, $text);
return $text;
}
add_filter(‘the_content’, ‘replace_text’);
Hi, I have this function to replace all “I’m” with “my name”. Except that “I’m” contains the apostrophe. This makes the function not working. can you help me?