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
Rendersinputas HTML. This method calls toString() oninputin order to get its String representation. Ifinputis null, this method returns "".- Parameters:
input- a String- Returns:
- a String that is encoded for HTML
-