From: "flornet@..." Date: 2006-09-05T17:45:37+09:00 Subject: highlight (ActionView::Helpers::TextHelper) I'm using that helper function with a search form to highlight the typed phrase in the content BUT when my content is HTML, I'll get replacement where I don't want to. For instance : @page.content = "

Ajax ImageMy text containing AJAX

" What I get : highlight (@page.content, 'ajax') =>

<span
class="highlight">Ajax</span> ImageMy text containing ajax

What I want to get : highlight (@page.content, 'ajax') =>

Ajax ImageMy text containing ajax

Don't know much to RegExp, is this possible to do ?