’ is getting converted as “\u0092” by nokogiri in ruby on rails

前端 未结 2 531
眼角桃花
眼角桃花 2021-01-02 15:42

I have html page which has following line with some html entities like \"’\".

#Here I am not pasting whole html page content. just putting issue lin         


        
2条回答
  •  暖寄归人
    2021-01-02 16:25

    Have you tried changing

    ’
    

    into

    i think the parser parses the ampersand first then concats it with "#146" and then parse them both. it's just an opinion though..I want this to be just a comment IDK how..lol

    Well I got the idea from focos in his answer post here, and the unicode from here.

提交回复
热议问题