Package io.jenkins.plugins.prism
Class Sanitizer
java.lang.Object
io.jenkins.plugins.prism.Sanitizer
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
.- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sanitizer
public Sanitizer()
-
-
Method Details
-
render
Renders the specified HTML code. Removes unsafe HTML constructs.- Parameters:
html
- the HTML to render- Returns:
- safe HTML
-
render
Renders the specified HTML code. Removes unsafe HTML constructs.- Parameters:
text
- the text to render- Returns:
- safe HTML
-