forked from spipu/html2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHtmlExtension.php
More file actions
60 lines (57 loc) · 1.25 KB
/
HtmlExtension.php
File metadata and controls
60 lines (57 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Html2Pdf Library
*
* HTML => PDF converter
* distributed under the OSL-3.0 License
*
* @package Html2pdf
* @author Laurent MINGUET <webmaster@html2pdf.fr>
* @copyright 2025 Laurent MINGUET
*/
namespace Spipu\Html2Pdf\Extension\Core;
use Spipu\Html2Pdf\Extension\AbstractExtension;
use Spipu\Html2Pdf\Tag\Html;
/**
* Class HtmlExtension
*/
class HtmlExtension extends AbstractExtension
{
/**
* {@inheritDoc}
*/
public function getName()
{
return 'core_html';
}
/**
* @inheritdoc
*/
protected function initTags()
{
return array(
new Html\Address(),
new Html\B(),
new Html\Big(),
new Html\Bookmark(),
new Html\Cite(),
new Html\Del(),
new Html\Em(),
new Html\Figure(),
new Html\Font(),
new Html\I(),
new Html\Ins(),
new Html\Label(),
new Html\S(),
new Html\Samp(),
new Html\Small(),
new Html\Span(),
new Html\Strong(),
new Html\Sub(),
new Html\Sup(),
new Html\U(),
new Html\Strike(),
new Html\Button(),
);
}
}