From 4a528d3f555c0381c6000a6cd07a677b9de3afb7 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Tue, 11 Jan 2022 09:04:52 -0600 Subject: [PATCH] Updated README --- README.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/README.md b/README.md index 46cebcb..ff0112b 100644 --- a/README.md +++ b/README.md @@ -165,17 +165,6 @@ $document = new DOMDocument(); $element = MensBeam\Lit\Highlight::toElement($code, 'text.html.php', $document); ``` -Other DOM libraries which inherit from PHP's DOM such as [`MensBeam\HTML`][d] may also be used: - -```php -... -$document = new MensBeam\HTML\Document(); -// $element will be owned by $document. -$element = MensBeam\Lit\Highlight::toElement($code, 'text.html.php', $document); -// MensBeam\HTML\Element can simply be cast to a string to serialize. -$string = (string)$element; -``` - Of course Lit can simply output a string, too: ```php