如何获取webcontent中的url地址:参考demo
<div class="szf-zc-w1c1 lf">
<div class="szf_tit" align="center">
最新通知
</div>
<ul class="szf-w1l">
<#if entries?has_content>
<#list entries as curEntry>
<#assign assetRenderer = curEntry.getAssetRenderer()>
<#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) />
<#assign title = docXml.valueOf("//dynamic-element[@name='title']/dynamic-content/text()") />
<#assign targeturl = docXml.valueOf("//dynamic-element[@name='targeturl']/dynamic-content/text()") />
<#assign createdate = docXml.valueOf("//dynamic-element[@name='createdate']/dynamic-content/text()") />
<li>
<#assign url =
assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, true) />
<a href="${url}" title=" ${title}">
${title}
</a>
<span>
${createdate}
</span>
</li>
</#list>
</#if>
</ul>
</div>