Posted by Messju Mohr on 04/18/05 15:21
On Mon, Apr 18, 2005 at 12:59:55PM +0100, pete M wrote:
> I've got this "google highlight" modifier which was taken from the wiki
> http://smarty.incutio.com/?page=modifier.google_highlight ta toma@etree.org
>
> I've modified it slightly as per the link below
> http://www.pastebin.com/272747
>
> The only problem is that "ocassionally" some of the phrases return
> spurious results..
>
> eg -
> search for "win do" is ok
> <span class="google_highlight">Win</span>chester House.<span
> class="google_highlight">do</span>c
>
> however "pa ss" returns extra tags as
> CP<span cla<span
> class="google_highlight">ss</span>="google_highlight">Pa</span><span
> class="google_highlight">ss</span>e<span
> class="google_highlight">ss</span>ments
str_replace() does replace already replaced parts. the
2-parameter-version of strtr() doesn't.
greetings
messju
> can a guru shed some light on thisn
>
> tia
>
> Pete
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
[Back to original message]
|