Issue
I have a string that is "\YES\"
How to simply remove the \ from the string?
sessionStorage.getItem('questionList2')!.replace(/"\"/g,'')
But all it resulted is an error.
Solution
sessionStorage.getItem('questionList2')!.replace(/\\/g,'')
Answered By - Evert
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.