Package com.atlassian.jira.render
Interface Encoder
- All Known Implementing Classes:
NoOpEncoder
,StrictEncoder
,SwitchingEncoder
@PublicApi
@ExperimentalApi
public interface Encoder
Encoder used to render content that has been provided by JIRA administrators. Depending on the security profile that
is in use, this content may or may not be HTML-encoded when being displayed.
- Since:
- v5.0.4
-
Method Summary
-
Method Details
-
encodeForHtml
Rendersinput
as HTML. This method calls toString() oninput
in order to get its String representation. Ifinput
is null, this method returns "".- Parameters:
input
- a String- Returns:
- a String that is encoded for HTML
-