Replace & to &

前端 未结 4 1047
轻奢々
轻奢々 2021-02-09 02:43

Due to some Javascript actions to vars I got & instead of & in my var: So I tried this:

  url_summer = \'http://192.168.0.2         


        
4条回答
  •  忘掉有多难
    2021-02-09 03:33

    Decode it like this:

    var str = "http://192.168.0.20/menulb.php?w=chapter&if=If_menulb&p=521";
    var div = document.createElement('div');
    div.innerHTML = str
    var decoded = div.firstChild.nodeValue;
    

提交回复
热议问题