You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2023/08/14 12:10:00 UTC

[jira] [Assigned] (SLING-10391) Improve MockXSSAPIImpl

     [ https://issues.apache.org/jira/browse/SLING-10391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert reassigned SLING-10391:
--------------------------------------

    Assignee: Stefan Seifert

> Improve MockXSSAPIImpl
> ----------------------
>
>                 Key: SLING-10391
>                 URL: https://issues.apache.org/jira/browse/SLING-10391
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing Sling Mock 3.0.2
>            Reporter: Henry Kuijpers
>            Assignee: Stefan Seifert
>            Priority: Major
>
> MockXSSAPIImpl only has a few very simplistic method implementations (i.e. for encodeForHTML it returns the input as-is).
> I think we can make some improvements to it, by:
> * Use StringEscapeUtils.escapeHtml4() to do HTML escaping (so that we can at least see a difference in the output)
> * Use StringEscapeUtils.escapeXml() to do XML escaping
> etc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)