Home › Forums › Other › Automatically set punctuation color. › Re: Automatically set punctuation color.
December 27, 2011 at 3:02 pm
#93462
noahgelman
Participant
Forgot to mentions, you can do this several times in a row:
$content = str_replace('?', '?', get_the_content();
$content = str_replace('!', '?', $content;
$content = str_replace('.', '?', $content;
echo $content;
?>
My php is only so good, I don’t know if there is a faster or more beneficial way of doing it than this.