Resources/Mpdf/Tag/SubstituteTag.php

19 lines
382 B
PHP
Executable File

<?php
namespace Mpdf\Tag;
abstract class SubstituteTag extends Tag
{
public function close(&$ahtml, &$ihtml)
{
$tag = $this->getTagName();
if ($this->mpdf->InlineProperties[$tag]) {
$this->mpdf->restoreInlineProperties($this->mpdf->InlineProperties[$tag]);
}
unset($this->mpdf->InlineProperties[$tag]);
$ltag = strtolower($tag);
$this->mpdf->$ltag = false;
}
}