我正在使用內容查詢 webpart for sharepoint online 並嘗試從列表中查詢超鏈接列。我正在查詢我的“URL”列以獲取 bing 地址。
<div class="url"><a href="{{URL.htmlValue}}">{{URL.htmlValue}}</a></div>
但這返回
https://sharepoint-tenant/sites/%3Ca%20href=%22http://bing.com%22%3EBING%3C/a%3E
我怎樣才能得到直接的 URL?
不確定我是否正確理解您的問題,但是如果您已經對 URL 進行了編碼,則可以使用三重引號來避免使用把手進行雙重編碼:
<div class="url"><a href="{{{URL.htmlValue}}}">{{{URL.htmlValue}}}</a></div>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句