开发者

Every velocity tool escape function working except url()?

开发者 https://www.devze.com 2023-03-09 06:50 出处:网络
I can get $esc.html to work, but not $esc.url, it just comes up literal even though I follow example at: http://velocity.apache.org/tools/devel/generic/EscapeTool.html

I can get $esc.html to work, but not $esc.url, it just comes up literal even though I follow example at: http://velocity.apache.org/tools/devel/generic/EscapeTool.html Interestingly enough, on that page the url() section's h开发者_开发知识库ead is "$attrib.name" instead of url().

Any ideas?

Thanks.


Worked for me in Tools 2.0. Maybe you have old version?

$esc.url("bread & butter") = bread+%26+butter
0

精彩评论

暂无评论...
验证码 换一张
取 消