Class RawHtmlMarkupFormatter

All Implemented Interfaces:
ExtensionPoint, Describable<MarkupFormatter>

public class RawHtmlMarkupFormatter extends MarkupFormatter
MarkupFormatter that sanitizes HTML, allowing some safe (formatting) HTML.

Before SECURITY-26 was fixed in Jenkins 1.454, this allowed all HTML without restriction. Since then, the class name is a misnomer, but kept for backwards compatibility.

  • Field Details

  • Constructor Details

    • RawHtmlMarkupFormatter

      @DataBoundConstructor public RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
  • Method Details

    • isDisableSyntaxHighlighting

      public boolean isDisableSyntaxHighlighting()
    • translate

      public void translate(String markup, @NonNull Writer output) throws IOException
      Specified by:
      translate in class MarkupFormatter
      Throws:
      IOException
    • getCodeMirrorMode

      public String getCodeMirrorMode()
    • getCodeMirrorConfig

      public String getCodeMirrorConfig()