Replace all double quotes within String

前端 未结 8 1221
轻奢々
轻奢々 2020-12-13 06:00

I am retrieving data from a database, where the field contains a String with HTML data. I want to replace all of the double quotes such that it can be used for parseJS

8条回答
  •  一生所求
    2020-12-13 06:20

    I think a regex is a little bit of an overkill in this situation. If you just want to remove all the quotes in your string I would use this code:

    details = details.replace("\"", "");
    

提交回复
热议问题