I am having problem with search and replace html content. The records coming from the database. The populated string contains html mark up and image name also. I am doing a search and replace it will affect the image also. Could any one help me to get rid of this issue.
For example
$str = 'The PHP development team revit would like to announce the immediate availability of a new PHP version.
The PDT project provides a PHP <img src="Images/Revit-Icon.jpg"> Development Tools framework for the Eclipse platform.
PHP is especially suited for Web development and can be embedded into HTML.
There are many development tools for PHP.';
$keyword = 'revit'
I want to replace all the revit substring with highlighted yellow color. When I am doing that will affect the Image also .
Images/%3Cspan%20class=%27highlight_important%27%3Erevit%3C/span%3E-Icon.jpg
Please help me its urgent...