Fixed HTML text highlighter

Used a good example of php code to hightlight searched words without corrupting HTML tags