replace \" with "

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepthi230
    New Member
    • Feb 2008
    • 8

    replace \" with "

    i am using the method parseFromString () to parse a string into DOM tree. i want to replace \" in the string with " before it is passed to the method, using javascript. how can i do this??
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use single quotes for the string so you can use double quotes unescaped.

    Comment

    Working...