Hi Massimiliano,

What decode() does is this: NodeUtil.deepUnwrap(content, 
HTMLEscapingNodeWrapper.class)

Then resolving of the links happens when the property is accessed in the 
FreeMarker script. You'll need to do this on your own as well. If you wrap the 
node in a ContentMap then it will do it for you.

What you end up with is this:

Node decodedNode = NodeUtil.deepUnwrap(node, HTMLEscapingNodeWrapper.class)
String valueWithLinksResolved = (new ContentMap(decodedNode)).get(propName)

For placeholder replacement org.springframework.util.PropertyPlaceholderHelper 
or org.apache.commons.lang.text.StrSubstitutor might be easier / safer than 
regexps.


Hope that helps, Tobias

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=c5a272b1-7da0-4d22-98d1-6e24611400f0


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to