如何将链接存储到速度变量中并以html显示?

问题描述

这是我的操作方式,但显然是错误的:

#set( $product_link = 'https://www.viator.com/tours/x/x-x/d0-22869ALHAMBRAEXC')
<p> Link: $product_link </p> 

解决方法

只需:

#set( $product_link = 'https://www.viator.com/tours/x/x-x/d0-22869ALHAMBRAEXC')
<p> <a href="$link">Link</a> </p>

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...