You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slachiewicz (via GitHub)" <gi...@apache.org> on 2026/09/26 07:43:29 UTC

[PR] Escape HTML in highlighted match fragments [maven-indexer]

slachiewicz opened a new pull request, #793:
URL: https://github.com/apache/maven-indexer/pull/793

   `MatchHighlightMode.HTML` fragments wrap matched terms in `<B>`, but `CleaningEncoder` copied the surrounding text unchanged, so a name or description containing `<`, `>` or `&` produced broken HTML. The encoder now HTML-escapes the text with Lucene's `SimpleHTMLEncoder` before removing line breaks.
   
   Callers that escaped the fragments themselves will now see them escaped twice and should stop doing so; this needs a line in the release notes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Escape HTML in highlighted match fragments [maven-indexer]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #793:
URL: https://github.com/apache/maven-indexer/pull/793


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org