Spring message tag javascript escape

前端 未结 1 1214
情话喂你
情话喂你 2021-02-15 15:17

When we try to display a label from a properties file, using spring tags, we can write:


         


        
1条回答
  •  甜味超标
    2021-02-15 15:56

    If the message is a JavaScript string literal, such as in

    
    

    Then you need this attribute, which will escape the single and double quotes, the newline chars, the tabs, etc. in order to make sure that the generated JavaScript is valid.

    0 讨论(0)
提交回复
热议问题