0

I am trying to get the raw html code(what I see in chrome source code window) in JQuery. I have tried html(), but it is converting all of quotes to &quot. I have tried text(), but it is the opposite, converting html symbols to text. I have the following source code in my browser, I want to remove the & #034; text, but I could not get it with above mentioned methods. How can I get it?

    {
        "description": "RUS/SANKT-PETERBU/Hotel "ANNUSHKA""
    },

text method is showing the following:

    {
            "description": "RUS/SANKT-PETERBU/Hotel "ANNUSHKA""
    },

html method is showing the following:

    {           
        "description": "RUS/SANKT-PETERBU/Hotel "ANNUSHKA""
    },
Alvin Mahmudov
  • 103
  • 1
  • 11

1 Answers1

0

Like this?

var obj = { "description": "RUS/SANKT-PETERBU/Hotel "ANNUSHKA"" }
obj.description.replace(/"/g, '')

I'm not sure that I understand your question.

FLeX
  • 444
  • 4
  • 13