php dize html dönüştürmek

0 Cevap php

Ben bir dize <div id="myid"> ... </div> var

How would I change this into <div id="myid">...</div>

Ben bir kaç şey ama hayır şans herhangi bir yardım denedi?

Update

function get_page(){
  $file = 'file.php';
  $str = file_get_contents($file);
  $str = html_entity_decode($str);
  return $str;
}
$output = get_page();
echo $output;//don't work

FIX

function get_page(){
      $file = 'file.php';
      $str = file_get_contents($file);
      return $str;
    }
    $output = get_page();
    echo html_entity_decode($output);//works

0 Cevap