diff options
author | Andrew Dolgov <[email protected]> | 2022-12-13 20:08:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-12-13 20:08:43 +0300 |
commit | 8ea537123d1cef38f25f9fbe92e3a9c0f89de55a (patch) | |
tree | 0b40ea733af15c1f33403e42afc8afa14d48b87c /plugins/af_readability/vendor/masterminds/html5/example.php | |
parent | 313f12ae9306fc62bbbfa10310a2feb20aa274c5 (diff) |
move af_readability out of master tree
Diffstat (limited to 'plugins/af_readability/vendor/masterminds/html5/example.php')
-rw-r--r-- | plugins/af_readability/vendor/masterminds/html5/example.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/af_readability/vendor/masterminds/html5/example.php b/plugins/af_readability/vendor/masterminds/html5/example.php deleted file mode 100644 index e4e1f22f9..000000000 --- a/plugins/af_readability/vendor/masterminds/html5/example.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -require 'vendor/autoload.php'; -use Masterminds\HTML5; - -$html = <<< 'HERE' - <html> - <head> - <title>TEST</title> - <script language="javascript"> - if (2 > 1) { alert("Math wins."); } - </script> - </head> - <body id='foo'> - <!-- This space intentionally left blank. --> - <section class="section-a pretty" id="bar1"> - <h1>Hello World</h1><p>This is a test of the HTML5 parser.</p> - <hr> - & Nobody nowhere. - </section> - <test xmlns:foo="http://example.com/foo">TEST</test> - <![CDATA[Because we can.]]> - © - </body></html> -HERE; - -$html5 = new HTML5(); -$dom = $html5->loadHTML($html); - -echo "Converting to HTML 5\n"; - -$html5->save($dom, fopen('php://stdin', 'w')); |