Skip to content

Commit 0164e37

Browse files
committed
Decompose Shared\Html
1 parent 4f93998 commit 0164e37

File tree

3 files changed

+278
-165
lines changed

3 files changed

+278
-165
lines changed

samples/Sample_26_Html.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
$section = $phpWord->addSection();
99
$html = '<h1>Adding element via HTML</h1>';
1010
$html .= '<p>Some well formed HTML snippet needs to be used</p>';
11-
$html .= '<p>With for example <strong>some <em>inline</em> formatting</strong></p>';
11+
$html .= '<p>With for example <strong>some<sup>1</sup> <em>inline</em> formatting</strong><sub>1</sub></p>';
12+
$html .= '<p>Unordered (bulleted) list:</p>';
13+
$html .= '<ul><li>Item 1</li><li>Item 2</li><ul><li>Item 2.1</li><li>Item 2.1</li></ul></ul>';
14+
$html .= '<p>Ordered (numbered) list:</p>';
15+
$html .= '<ol><li>Item 1</li><li>Item 2</li></ol>';
1216

1317
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
1418

0 commit comments

Comments
 (0)