晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/akaindir/www/crm/modules/MailManager/third-party/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.7.0RC1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>XML_HTMLSax3</name>
<channel>pear.php.net</channel>
<summary>A SAX parser for HTML and other badly formed XML documents</summary>
<description>XML_HTMLSax3 is a SAX based XML parser for badly formed XML documents, such as HTML.
The original code base was developed by Alexander Zhukov and published at http://sourceforge.net/projects/phpshelve/. Alexander kindly gave permission to modify the code and license for inclusion in PEAR.
NOTE!
This package is now dual licensed under PHP license v3.01 and LGPL 3.0
See the CVS repo link for the actual licenses
PEAR::XML_HTMLSax3 provides an API very similar to the native PHP XML extension (http://www.php.net/xml), allowing handlers using one to be easily adapted to the other. The key difference is HTMLSax will not break on badly formed XML, allowing it to be used for parsing HTML documents. Otherwise HTMLSax supports all the handlers available from Expat except namespace and external entity handlers. Provides methods for handling XML escapes as well as JSP/ASP opening and close tags.
Version 1.x introduced an API similar to the native SAX extension but used a slow character by character approach to parsing.
Version 2.x has had it's internals completely overhauled to use a Lexer, delivering performance *approaching* that of the native XML extension, as well as a radically improved, modular design that makes adding further functionality easy.
Version 3.x is about fine tuning the API, behaviour and providing a mechanism to distinguish HTML "quirks" from badly formed HTML (later functionality not yet implemented)
A big thanks to Jeff Moore (lead developer of WACT: http://wact.sourceforge.net) who's largely responsible for new design, as well input from other members at Sitepoint's Advanced PHP forums: http://www.sitepointforums.com/showthread.php?threadid=121246.
Thanks also to Marcus Baker (lead developer of SimpleTest: http://www.lastcraft.com/simple_test.php) for sorting out the unit tests.</description>
<lead>
<name>Harry Fuecks</name>
<user>hfuecks</user>
<email>hfuecks@phppatterns.com</email>
<active>no</active>
</lead>
<date>2007-12-01</date>
<time>22:09:38</time>
<version>
<release>3.0.0</release>
<api>3.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>Fixed bug #1850 HTMLtoXHTML.php does not produce XHTML [dufuz]
Fixed bug #11607 Requesting License change, emails to listed authors bounce [cdake}
Fixed bug #12159 not clarified license [hfuecks]
This package is now dual licensed under PHP license v3.01 and LGPL 3.0</notes>
<contents>
<dir name="/">
<file baseinstalldir="XML" md5sum="6443030f28b37aef18648f80c0ebfa50" name="docs/examples/example.html" role="doc" />
<file baseinstalldir="XML" md5sum="927697c9a4090472c9b52acf5fa2f297" name="docs/examples/ExpatvsHtmlSax.php" role="doc" />
<file baseinstalldir="XML" md5sum="6f5bf3660dee8a549e0163ed371ee3f8" name="docs/examples/HTMLtoXHTML.php" role="doc" />
<file baseinstalldir="XML" md5sum="069662117a0fbea381abad112d47b150" name="docs/examples/SimpleExample.php" role="doc" />
<file baseinstalldir="XML" md5sum="010de9495fe6793a9c95e9dc7170b493" name="docs/examples/SimpleTemplate.php" role="doc" />
<file baseinstalldir="XML" md5sum="3d230b9d9301cc49bcab6314155d49c1" name="docs/examples/simpletemplate.tpl" role="doc" />
<file baseinstalldir="XML" md5sum="0ff3c67cf9e09dd8a0088aa14e633449" name="docs/examples/worddoc.htm" role="doc" />
<file baseinstalldir="XML" md5sum="fbf07a95c981cc40823dec345af99c3d" name="docs/examples/WordDoc.php" role="doc" />
<file baseinstalldir="XML" md5sum="48ff7cce1acdf3725a4f3c43f72ae491" name="docs/Readme" role="doc" />
<file baseinstalldir="XML" md5sum="ee68fca44daf5ea4ab0d1e89898dbac5" name="HTMLSax3/Decorators.php" role="php" />
<file baseinstalldir="XML" md5sum="53bc57b65555dbb2f11723c9cfef35c0" name="HTMLSax3/States.php" role="php" />
<file baseinstalldir="XML" md5sum="58a613410f75656db17d6d0ea27e2534" name="tests/index.php" role="test" />
<file baseinstalldir="XML" md5sum="3d7e5c0266f5c807e9b21a194630f17b" name="tests/unit_tests.php" role="test" />
<file baseinstalldir="XML" md5sum="4b67baeaf8d3032ffd55affef4c8a7ff" name="tests/xml_htmlsax_test.php" role="test" />
<file baseinstalldir="XML" md5sum="909dd989c6c6ece13efe37c028c4fefd" name="HTMLSax3.php" role="php" />
</dir>
</contents>
<dependencies>
<required>
<php>
<min>4.0.5</min>
</php>
<pearinstaller>
<min>1.4.0b1</min>
</pearinstaller>
</required>
<optional>
<extension>
<name>pcre</name>
</extension>
</optional>
</dependencies>
<phprelease />
<changelog>
<release>
<date>2004-06-02</date>
<version>
<release>3.0.0RC1</release>
<api>3.0.0RC1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Re PEAR version naming rules, you now include XML/HTMLSax3.php and the main class is called XML_HTMLSax3
* Now able to parse Word generated HTML - fixed bug with parsing of XML escape sequences
* API break (minor): no longer extends PEAR
* API break (minor): attributes with no value (like option selected) are now populated with NULL instead of TRUE
* API break (minor): replaced XML_OPTION_FULL_ESCAPES with XML_OPTION_STRIP_ESCAPES - by default you now get back the complete escape sequence
* Added some more examples</notes>
</release>
<release>
<version>
<release>2.1.2</release>
<api>2.1.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-12-05</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Bug fixed (thanks Jeff) where badly formed attributes resulted in infinite loop
* Added additional boolean argument to open and close handler calls to spot empty tags like br/ - should not break exising APIs
* Added XML_OPTION_FULL_ESCAPES which (when = 1) passes through the complete content in an XML escape, allowing comment / cdata reconstruction</notes>
</release>
<release>
<version>
<release>2.1.1</release>
<api>2.1.1</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-10-08</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Reporting of byte index with get_current_position() more accurate on opening tags (thanks to Alexander Orlov at x-code.com)
* All parser options now available to PHP versions lt 4.3.x, using implementation of html_entity_decode in PHP</notes>
</release>
<release>
<version>
<release>2.1.0</release>
<api>2.1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-09-10</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Well (unit) tested with SimpleTest</notes>
</release>
<release>
<version>
<release>2.0.2</release>
<api>2.0.2</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2003-08-11</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* API is backwards compatible apart from the renaming of parser options
* Performance dramatically increased. Not much slower than Expat
* Better handling of XML comments and CDATA
* Option to trigger additional data handler calls for linefeeds and tabs
* Option to trigger additional data handler calls for XML entities and parse them if required.
* Added public get_current_position() and get_length() methods</notes>
</release>
<release>
<version>
<release>1.1</release>
<api>1.1</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-06-26</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Bug fixes to Attribute_Parser to cope with newline, tag, forward slash and whitespace issues.</notes>
</release>
<release>
<version>
<release>1.0</release>
<api>1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2003-06-08</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>* Modifications to file structure to place Attributes_Parser.php
and State_Machine.php in subdirectory HTMLSax
* XML_HTMLSax.php includes Attributes_Parser.php and State_Machine.php
using require_once()</notes>
</release>
<release>
<version>
<release>0.9.0rc2</release>
<api>0.9.0rc2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2003-05-18</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>*First release under PEAR
*Changed package name to XML_HTMLSax
*Added patch from John Luxford to parse single quoted attributes
*Modified State_Machine to be a simple variable store</notes>
</release>
<release>
<version>
<release>0.9.0rc1</release>
<api>0.9.0rc1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2003-05-09</date>
<license uri="http://www.php.net/license">PHP</license>
<notes>A summary of the main differences between this version
of HTML_Sax and HTMLSax2002082201 are as follows;
*Instead of extending HTMLSax with your own "handlers" class,
you now use the set_object() method to pass an instance of the
class to HTMLSax.
*Class method callbacks are specified using the following methods;
*set_element_handler('startHandler','endHandler') <tag> and </tag>
*set_data_handler('dataHandler') for contents of an element
*set_pi_handler('piHandler') for <?php ?>, <?xml ?> etc.
*set_escape_handler(') for anything beginning with <!
*set_jasp_handler() - set listener for <% %> tags
*Attributes which no value are created and set to true
*Comments are handled and may contain entities; < >
*The callback handlers will all be passed an instance of HTMLSax
in the same way as the native PHP XML Expat extension
*Setting of parser options is handled specifically by the set_option()
method. Available options are;
*skipWhiteSpace; instruct the parser to ignore whitespace characters
*trimDataNodes; trim whitespace inside character data
*breakOnNewLine; newline characters found in character data are treated
as new events triggering another data callback
*caseFolding; converts element names to uppercase</notes>
</release>
</changelog>
</package>