: > However I still think the highlighter should return unescaped tags for
: > highlighting. There is IMO no benefit for the current behavior.

the advantage is that the XmlResponseWriter has a duty to ensure that it
produces wellformed XML regardless of configuration, data, or input.

: The problems all stem from the simple highlighter formatter mixing
: highlighting info directly into the string to be highlighted.  It's
: not a 100% bulletproof solution because now you can't tell original
: field value from markup.

right ... the best you can do is pick markup that you are confident
doesn't appear in *your* data (which is why the hl.simple.pre and
hl.simple.post args exist)

Once upon a time, i speculated on a more "advanced" format for returning
highlighter info that was never implimented, but could still be usefull --
not just for situations like this, but in general for extracting more info
about the orrigin of the snippets...

http://www.nabble.com/highlighting-tf1393198.html#a3954083





-Hoss

Reply via email to