Page 1 of 1

Emphasize

Posted: Mon Nov 08, 2004 3:45 pm
by Shendemiar
I have a page (a search result) in variable.

Id like to <b>bolden</b> the words one searched for (with srt_replace), but the string also includes html tags. I dont want to add <b> inside a <table> tag...

How to solve this?

Posted: Mon Nov 08, 2004 6:04 pm
by kettle_drum
You just need to create a more complex regex to find where you should make the text bold.

Posted: Mon Nov 08, 2004 6:38 pm
by josh
use preg_replace maybe?