Replace all double quotes within String

前端 未结 8 1222
轻奢々
轻奢々 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:36

    This is to remove double quotes in a string.

    str1 = str.replace(/"/g, "");
    alert(str1);
    

提交回复
热议问题