public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, $inTightList = false)
{
if (!$block instanceof IndentedCode) {
throw new \InvalidArgumentException('Incompatible block type: ' . get_class($block));
}
$attrs = [];
foreach ($block->getData('attributes', []) as $key => $value) {
$attrs[$key] = $htmlRenderer->escape($value, true);
}
return new HtmlElement('pre', [], new HtmlElement('code', $attrs, $htmlRenderer->escape($block->getStringContent())));
}