You are here

private function DumpDataCollector::htmlEncode in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php \Symfony\Component\HttpKernel\DataCollector\DumpDataCollector::htmlEncode()
1 call to DumpDataCollector::htmlEncode()
DumpDataCollector::dump in vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php

File

vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php, line 291

Class

DumpDataCollector
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

private function htmlEncode($s) {
  $html = '';
  $dumper = new HtmlDumper(function ($line) use (&$html) {
    $html .= $line;
  }, $this->charset);
  $dumper
    ->setDumpHeader('');
  $dumper
    ->setDumpBoundaries('', '');
  $cloner = new VarCloner();
  $dumper
    ->dump($cloner
    ->cloneVar($s));
  return substr(strip_tags($html), 1, -1);
}