Why can't I get rid of this  ?

前端 未结 2 2179
时光说笑
时光说笑 2021-02-14 02:44

Each line is a string

 4 
 minutes 
 12
 minutes
 16
 minutes

I was able to remove

2条回答
  •  梦毁少年i
    2021-02-14 03:25

    This looks like an encoding error - your document is encoded with UTF-8, but is being rendered as ASCII. Solving your encoding mis-match will solve your issues. You could try using utf8_decode() on your source before using DOMdocument::loadHTML()

    Here's an alternative solution from the DOMdocument::loadHTML() documentation page.

提交回复
热议问题