Uploaded image for project: 'Hibernate Validator'
  1. HV-1302

@SafeHtml should support adding additional protocols

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.4.Final
    • Fix Version/s: 6.0.0.Beta2
    • Component/s: validators
    • Labels:
      None

      Description

      I would like to use the @SafeHtml annotation, but I have embedded images using data URI.

      <img src="data:image/png;base64,........" />
      

      "data:" is not one of the default protocols allowed in the JSoup Whitelist, but adding additional protocols is supported. However, @SafeHtml does not support adding additional protocols.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: