Package hudson.markup
Class RawHtmlMarkupFormatter
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<MarkupFormatter>
-
- hudson.markup.MarkupFormatter
-
- hudson.markup.RawHtmlMarkupFormatter
-
- All Implemented Interfaces:
ExtensionPoint,Describable<MarkupFormatter>
public class RawHtmlMarkupFormatter extends MarkupFormatter
MarkupFormatterthat 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRawHtmlMarkupFormatter.DescriptorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static MarkupFormatterINSTANCE
-
Constructor Summary
Constructors Constructor Description RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCodeMirrorConfig()StringgetCodeMirrorMode()booleanisDisableSyntaxHighlighting()voidtranslate(String markup, Writer output)-
Methods inherited from class hudson.markup.MarkupFormatter
doPreviewDescription, getDescriptor, getHelpUrl, previewsNowNeedPostForSecurity2153, translate
-
-
-
-
Field Detail
-
INSTANCE
public static final MarkupFormatter INSTANCE
-
-
Method Detail
-
isDisableSyntaxHighlighting
public boolean isDisableSyntaxHighlighting()
-
translate
public void translate(String markup, Writer output) throws IOException
- Specified by:
translatein classMarkupFormatter- Throws:
IOException
-
getCodeMirrorMode
public String getCodeMirrorMode()
-
getCodeMirrorConfig
public String getCodeMirrorConfig()
-
-