Encoding issue, coverting & to & for html using php

后端 未结 4 983
無奈伤痛
無奈伤痛 2021-02-19 07:37

I have a url in html:


I need to turn it into a string exactly as:



        
4条回答
  •  轮回少年
    2021-02-19 08:03

    after string go through TinyMCE only this code help me

    $string = iconv('UTF-8','cp1251',$string);
    $string = str_replace(chr(160), chr(32), $string);
    $string = iconv('cp1251','UTF-8',$string);
    

提交回复
热议问题