removing strange characters from php string

前端 未结 14 1160
忘了有多久
忘了有多久 2021-01-31 17:45

this is what i have right now

Drawing an RSS feed into the php, the raw xml from the rss feed reads:

Paul’s Confidence

The ph

14条回答
  •  情书的邮戳
    2021-01-31 18:27

    I solved the problem. Seems to be a short fix rather than the larger issue, but it works.

    $newtitle = str_replace('’', "'", $newtitle);
    

    I also found this useful snippit that may help others with same problem;

    
    

    Thanks everyone for your time and consideration.

提交回复
热议问题