开发者

JSF 2.0/Facelets - JavaScript characters get encoded as html entities

开发者 https://www.devze.com 2023-04-09 22:27 出处:网络
I\'m using jQuery inside Faceletes template. The problem is that special characters are encoded as html enti开发者_如何学Goties, eg if (y >= top) { to if (y >= top) {

I'm using jQuery inside Faceletes template. The problem is that special characters are encoded as html enti开发者_如何学Goties, eg if (y >= top) { to if (y >= top) {

I'm using JSF 2.0 with Glassfish 3.


Try this

<script type="text/javascript">
//<![CDATA[
  //your script here
//]]>
</script>
0

精彩评论

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

关注公众号