AnsweredAssumed Answered

HTML tags in Freemarker

Question asked by gmurphy on May 20, 2010
Hi

I'm tring to make the variable ${args["taskDesc"]} type in italics but to no avail.


But I get <i>${args["taskDesc"]}</i>

Any suggestions

<#– Sends email to people when they need an Author to Edit Document –>
<#setting url_escaping_charset='ISO-8859-1'>

<#macro location doc>
<#assign qnamePaths=doc.qnamePath?split("/")/>
<#assign displayPaths=doc.displayPath?split("/")+[""]/>
<#if ((qnamePaths?size&gt;5)&&(qnamePaths[2]=="st:sites"))><#list displayPaths[5..]as path><#if path_has_next>/</#if>${path?url}</#list></#if></#macro>

<#assign initiator=companyhome.nodeByReference[args["initiatorNodeRef"]]/>

<#assign assignee=companyhome.nodeByReference[args["assigneeNodeRef"]]/>

<#assign manuals=companyhome.nodeByReference[args["packageNodeRef"]].children/>

<#assign componentpath=args["taskDisplayPath"]?split("/")/>
<#assign mysite=componentpath[3]/>
<#if (componentpath[3]=="TaxAndDutyManual")><#assign sitecomponenturl="TaxAndDutyManual/taxdutymanuallibrary"/><#else><#assign sitecomponenturl=mysite+"/documentPreviewer"/></#if>

${assignee.properties.firstName} ${assignee.properties.lastName},

The following document(s) have been sent to you by ${initiator.properties.firstName} ${initiator.properties.lastName} to act on.

<#list manuals?reverse as doc>
<#if doc.hasAspect("cm:workingcopy")>
${doc.name} can be accessed on RevShare at:
http://localhost:8080/share/page/site/${sitecomponenturl}#path=<@location doc/>&file=${doc.nodeRef?url}

</#if>
</#list>

Please complete the task by: ${args["taskDueDate"]}

Message from ${initiator.properties.firstName}

<i>${args["taskDesc"]}</i>



Best Regards

${initiator.properties.firstName} ${initiator.properties.lastName}

Outcomes