Why do ampersands (&) need to be encoded in JSF? Is there a way around this?

后端 未结 4 1696
耶瑟儿~
耶瑟儿~ 2020-12-01 23:34

I often have Javascript on my JSF XHTML pages that has && in it, which I end up having to encode as &&

For example, when I place

4条回答
  •  被撕碎了的回忆
    2020-12-02 00:14

    It's because & is special characters in XML : http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

提交回复
热议问题