<?php

$doc = new DomDocument;
/** /
$doc->loadHTML(file_get_contents('https://www.binance.com/en/support/announcement/c-48'));

$data=$doc->getElementById('__APP_DATA');

echo '<pre>';
print_r(json_decode($data->textContent,true));
echo '</pre>';
/**/

$parsedText='';
function parseNode($nodeChildren){
global $parsedText;
    //$nodeLevel++;
    if (isset($nodeChildren['child'])){
      foreach($nodeChildren['child'] AS $child){
if (isset($child['tag'])){
        $parsedText.='<'.$child['tag'].'>';
}
        parseNode($child);
if (isset($child['tag'])){
        $parsedText.='</'.$child['tag'].'>';
}
        //$nodeLevel--;
      }
    }
    else {
      $parsedText.=$nodeChildren['text'].' ';
    }
  }

$doc->loadHTML(file_get_contents('https://www.binance.com/en/support/announcement/8037d966fe0241cdb6ccd90491d33817'));
$doc->loadHTML(file_get_contents('https://www.binance.com/en/support/announcement/7c6445a5529a410982291d04f1304f93'));
$doc->loadHTML(file_get_contents('https://www.binance.com/en/support/announcement/c6f4b9ca32374bd488af6fc050205bca'));

error_reporting(E_ALL);
ini_set('display_errors',1);

$dataJSON=$doc->getElementById('__APP_DATA');
      $data=json_decode($dataJSON->textContent,true);

      foreach($data['routeProps'] AS $k=>&$section){
        if (isset($section['articleDetail'])){
          $bodyParts=json_decode($section['articleDetail']['body'],true);
	parseNode($bodyParts);
echo '<div>'.$parsedText.'</div>';
$matches=array();
preg_match_all('|([A-Z]{3,6})/?([A-Z]{3,6})|',$parsedText,$matches);
          echo '<pre>'; print_r($matches); echo '</pre>';
          echo '<pre>'; print_r($bodyParts); echo '</pre>';
        }
      }
?>