magnus-tenk
-
11/5/2012 6:50:24 PM
SeachHighlight: Problem with HTML-field
Hi. I don't know if this is the expected behaviour or perhaps an unnescessary limitation of this function, but when I feed it with a HTML-string, it performs a HTMLEncode on it, so that the html get rendered as text, with the exception of the Highlight-tag.
I would appreciate some input on this.
/Magnus
To give an example. I give: SearchHighLight("My <strong> html </strong> word etc...", startTag, stopTag) I want: My <strong> html </strong> <span class"highLight"> word </span> etc.. I get: "My <strong> html </strong>" <span class"highLight"> word </span> "etc.."
|