jquery Highlight func.

jquery Highlight func.

Hi this jquery Highlight func.
I am sending data to function in this way
return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
 
this send data  or value=
"Computer<br><span style='font-size: 76%;'>Computer Software</span>
this "Computer" not Highlight this Highlight "Computer Software"

 

help me...

    • Topic Participants

    • keci2