Escaping javascript string in java

前端 未结 3 2049
失恋的感觉
失恋的感觉 2020-12-03 21:23

I need to make this into a string in java:

 

        
3条回答
  •  长情又很酷
    2020-12-03 22:05

    It seems it moved yet again, now it is part of "commons-text" and is named:

    StringEscapeUtils.escapeEcmaScript
    

    But good it still exists.

提交回复
热议问题