private function DumpDataCollector::htmlEncode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\DataCollectorCode
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);
}