I am extracting the html content using the code below,
preg_match_all('/<div class="content">(.*?)<\/div>/s', $str, $matches);
echo $matches[1][0];
The content is selected correctly, but some special char whit text does not display correctly, as
"response to what?" show as "the answer to what?"
but it doesn’tdisplayed, but it does not matter. and some blanck space mapping as Â
How to solve this problem..?
source
share