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
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RawHtmlMarkupFormatter.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static MarkupFormatter
INSTANCE
-
Constructor Summary
Constructors Constructor Description RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeMirrorConfig()
String
getCodeMirrorMode()
boolean
isDisableSyntaxHighlighting()
void
translate(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:
translate
in classMarkupFormatter
- Throws:
IOException
-
getCodeMirrorMode
public String getCodeMirrorMode()
-
getCodeMirrorConfig
public String getCodeMirrorConfig()
-
-