JSF 2.0; escape=“false” alternative to prevent XSS?

前端 未结 2 1104
南方客
南方客 2020-12-18 12:35

In my jsf webapplication i\'m using a messages.properties to output some text. This text could have html line breaks so format the outputtext.

That all works fine, i

2条回答
  •  旧时难觅i
    2020-12-18 12:57

    It should be possible to just escape the user supplied parameter using the standard jstl functions in the http://java.sun.com/jsp/jstl/functions namespace:

    
        
    
    

提交回复
热议问题