Forum Moderators: coopster
I have a bunch of content where I want to change a certain pattern into HTML. For example, sprinkled throughout the content are several of these, with the "SOME TEXT" being different each time:
yyySOME TEXTyyy becomes
<h2>SOME TEXT</h2>
Anyone have an idea of how to do this in PHP?
Thank you in advance...
blah blah blah yyyTHIS UNKNOWN TEXTyyy blah blah blah blah yyyTHAT UNKNOWN TEXTyyy blah blah blah blah ...
to:
blah blah blah <h2>THIS UNKNOWN TEXT</h2> blah blah blah blah <h2>THAT UNKNOWN TEXT</h2> blah blah blah blah ...