Forum: Ruby on Rails Highlight search terms

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
22bb6be0cf01f0fc77d2bd61339cecd9?d=identicon&s=25 Matt Spendlove (Guest)
on 2007-03-30 06:00
(Received via mailing list)

I can't seem to find a configurable Ruby search term highlighter out
there - can't believe there isn't one ?

I've reviewed TextHelper.highlight but it's to simple for my
requirements. I need to be able to exclude html when highlighting.
Something similar to PHP str_highlight :


If no suggestions then I guess I'll have to write some code ;)


This topic is locked and can not be replied to.