如何防止Velocity对HTML内容转义

2025-04-04 07:10:31
推荐回答(1个)
回答1:

在<、>前面加 \\\\ 斜杠!
#noescape()$!{msg}#end 可以防止转译

#esc_noesc()这个方法, 可以执行Html