Klasse Sanitizer

java.lang.Object
io.jenkins.plugins.prism.Sanitizer

public class Sanitizer extends Object
Sanitizes a piece of unsafe HTML code so that it can be rendered in a UI view. This class serves as simple wrapper for Jenkins´ RawHtmlMarkupFormatter.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • Sanitizer

      public Sanitizer()
  • Methodendetails

    • render

      public String render(String html)
      Renders the specified HTML code. Removes unsafe HTML constructs.
      Parameter:
      html - the HTML to render
      Gibt zurück:
      safe HTML
    • render

      public String render(j2html.tags.DomContent text)
      Renders the specified HTML code. Removes unsafe HTML constructs.
      Parameter:
      text - the text to render
      Gibt zurück:
      safe HTML