void smarty_modifier_google_highlight(
$text, $search, $contextSize)
|
|
Smarty plugin
------------------------------------------------------------- Type: modifier Name: google_highlight Version: 2.0 Date: May 7, 2007 Author: Jorn Wildt Purpose: html safe case insensitive google highlight Comments: based on work by Jeroen de Jong <jeroen@telartis.nl> based on work by Tom Anderson <toma@etree.org>
Example smarty code:
{assign var=text value="This is a <a href=this>string</a> I want to search through"} {assign var=search value="this \"to search\" through"} {$text|google_highlight:$search}
-------------------------------------------------------------
Parameters
| |
$text |
|
| |
$search |
|
| |
$contextSize |
|