I wanted to embed quicktime movies in knowledgeroot content but found that the search marks up the HTML needed to include the movie. After a few searches I found:
http://aidanlister.com/repos/v/function.str_highlight.phpThe code is in the public domain. I downloaded the file. Included it in init.php then modified the class-knowledgeroot-content.php code to:
// adding colored highlighting
if(isset($_GET['highlight']) && $_GET['highlight'] != "") {
$highlight = explode(",", $_GET['highlight']);
foreach($highlight as $hkey => $hvalue) {
$row['content'] = str_highlight($row['content'], $hvalue, null, '<span class="highlightword">\1</span>');
}
}