How to escape the Message resource in velocity view in confluence
application..

Content from property file is not encoded.

In VM file the message is displayed as"=<font color="red">Updation
failed.<font>"

 

How to display the message in red color in VM file.

 

 

Is there way we can configure either in template or in atlassian-plugin.xml.

When me

 

Message Resource:

msg.failed.common.updated=<font color="red">Updation failed.<font>

 

Actionmessages.vm:

 

#if($actionMessages && $actionMessages.size() > 0)

    #foreach($message in $actionMessages)

        <font color="#000000">

            <b>$message</b>

        </font>

        #if($actionMessages.size() > 1)

                  </br>

        #end

    #end

#end

 

JavA File:

 

this.addActionMessage(GeneralUtil.htmlEncode(getText("msg.failed.common.upda
ted ")));

Reply via email to