[ 
https://issues.apache.org/jira/browse/JSPWIKI-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131567#comment-18131567
 ] 

ASF subversion and git services commented on JSPWIKI-1164:
----------------------------------------------------------

Commit 76f9cd16260259ce647bc272d79a921a8880b34d in jspwiki's branch 
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=76f9cd162 ]

JSPWIKI-1164 Do not show < as &lt; when highlighting a search query

HighlightQuery returned every text node with its < escaped, but mapTextNodes 
only parses the result as html when it still contains a <, so a text node 
without a match was set as the literal text &lt;. mapTextNodes now leaves a 
node alone when the callback returns it unchanged, and HighlightQuery only 
rewrites the nodes with a match, escaping the text around the matches.


> if a page is viewed as a result of a search, then < is displayed as &lt;
> ------------------------------------------------------------------------
>
>                 Key: JSPWIKI-1164
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1164
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Templates and UI
>    Affects Versions: 2.11.0
>         Environment: Tested under Windows with tomcat 9.0.55 and Fedora Linux 
> with Wildfly 21.
>            Reporter: Dietrich Schmidt
>            Assignee: Dirk Frederickx
>            Priority: Major
>              Labels: pull-request-available
>
> On a normal wiki page, the text <ABC> ist displayed as <ABC>.
> If this page is found as a search result and then clicked on, then <ABC> ist 
> displayed as &lt ;ABC> .
> Expectation: <ABC> ist always displayed as <ABC>.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to