I had :
$generalUtil.htmlEncode
in my code, and now for Confluence 7 we need to change it to:
$htmlUtil.htmlEncode
But the latter is not working.
Am I missing something? Any import?
I am using Confluence 6.0.6.
You can add <velocity-context-item key="htmlUtil" class="com.atlassian.confluence.util.HtmlUtil" context-key="htmlUtil" global="true"></velocity-context-item> in the config xml
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.