Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10391

Improve MockXSSAPIImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Testing Sling Mock 3.0.2
    • Testing Sling Mock 3.4.12
    • Testing
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              Henry Kuijpers Henry Kuijpers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: