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.
$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 .
Please help me its urgent...