diff --git a/src/Extension/Core/HtmlExtension.php b/src/Extension/Core/HtmlExtension.php index 15bcf37d..c47b7a96 100644 --- a/src/Extension/Core/HtmlExtension.php +++ b/src/Extension/Core/HtmlExtension.php @@ -52,6 +52,7 @@ protected function initTags() new Html\Sub(), new Html\Sup(), new Html\U(), + new Html\StrikeTag(), ); } } diff --git a/src/Tag/Html/StrikeTag.php b/src/Tag/Html/StrikeTag.php new file mode 100644 index 00000000..838d4a6b --- /dev/null +++ b/src/Tag/Html/StrikeTag.php @@ -0,0 +1,35 @@ + PDF converter + * distributed under the OSL-3.0 License + * + * @package Html2pdf + * @author Laurent MINGUET + * @copyright 2017 Laurent MINGUET + */ + +namespace Spipu\Html2Pdf\Tag\Html; +use Spipu\Html2Pdf\Tag\AbstractHtmlTag; +/** + * Tag StrikeTag + */ +class StrikeTag extends AbstractHtmlTag +{ + public function __construct() + { + parent::__construct('strike'); + } + + public function getName() + { + return 'strike'; + } + + protected function overrideStyles() + { + $this->parsingCss->value['font-linethrough'] = true; + return true; + } +} \ No newline at end of file