Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Automatically set punctuation color. Re: Automatically set punctuation color.

#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.