Interface HtmlSafeVelocityTemplate
- All Known Subinterfaces:
ConfluenceVelocityTemplate
public interface HtmlSafeVelocityTemplate
- Since:
- 8.4
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the template has disabled auto encoding on its contents.boolean
Used by plugins to determine whether auto encoding should be enabled on its contents.
-
Method Details
-
isAutoEncodeDisabled
boolean isAutoEncodeDisabled()Determines whether the template has disabled auto encoding on its contents. This is achieved by including theDisableAntiXssDirective
Returns false if no directive is found.- Returns:
- true if this template has disabled auto encoding on its contents
-
isDeclaredHtmlSafe
boolean isDeclaredHtmlSafe()Used by plugins to determine whether auto encoding should be enabled on its contents. This is achieved by including theHtmlSafeDirective
Returns false if no directive is found.- Returns:
- true if the template should have auto encoding enabled
-