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.| Modifier and Type | Class and Description |
|---|---|
static class |
RawHtmlMarkupFormatter.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static MarkupFormatter |
INSTANCE |
| Constructor and Description |
|---|
RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCodeMirrorConfig() |
String |
getCodeMirrorMode() |
boolean |
isDisableSyntaxHighlighting() |
void |
translate(String markup,
Writer output) |
doPreviewDescription, getDescriptor, getHelpUrl, previewsNowNeedPostForSecurity2153, translatepublic static final MarkupFormatter INSTANCE
@DataBoundConstructor public RawHtmlMarkupFormatter(boolean disableSyntaxHighlighting)
public boolean isDisableSyntaxHighlighting()
public void translate(String markup, Writer output) throws IOException
translate in class MarkupFormatterIOExceptionpublic String getCodeMirrorMode()
public String getCodeMirrorConfig()
Copyright © 2016–2021. All rights reserved.