We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f93998 commit 0164e37Copy full SHA for 0164e37
samples/Sample_26_Html.php
@@ -8,7 +8,11 @@
8
$section = $phpWord->addSection();
9
$html = '<h1>Adding element via HTML</h1>';
10
$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>';
+$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>';
16
17
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
18
0 commit comments