Neden bu  kurtulmak değil mi?

0 Cevap php

Her satır bir dizedir

 4 
 minutes 
 12
 minutes
 16
 minutes

Ben  başarıyla str_replace kullanarak değil, HTML varlık çıkarmayı başardı. http://stackoverflow.com/questions/657643/how-to-remove-html-special-chars-in-php: Ben bu soruyu buldum

Ama preg_replace iş yapmadım. Nasıl HTML varlık ve A kaldırabilirim?

Edit: I think I should have said this earlier: I am using DOMDocument::loadHTML() and DOMXpath. Edit: Since this seems like an encoding issue, I should say that this is actually all separate strings.

0 Cevap