Download the PHP package yukanoe/html without Composer
On this page you can find all versions of the php package yukanoe/html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package html
Yukanoe\HTML PHP library!
A PHP library , Simple, minimal and portable DOM.
Try: demo-01.yukanoe.org
1 Installation
2 Table of Contents
- Class
Yukanoe\HTML\Tag
- Private HTML Attributes
- (optional) Overview
- (optional) Test/Demo Directory
- (optional) Examples Directory
- (optional) Class TagManager
3 Get started
Create Tag
INPUT (Server: index.php)
OUTPUT (browser)
4 Basic Usage
4.1 set attribute
4.1.1 public attributes
4.1.2 public methods
4.2 hide/show: hide/show a Tag
4.3 restrict: htmlspecialchars(content)
4.4 addChild
Loops
example-00.php
-
data
-
Clone (NOTICE:
Tag
isdeep clone
) - Conditional Statements
DOMDocument
-
While HTML5 has been around for a very long time now, the DOM parser used by the PHP engine has lingered behind, only supporting HTML 4.01 features.
- The PHP 8.4 release rectifies that situation with comprehensive support for HTML5, via adoption of a more capable HTML5 parsing library, and new opt-in DOM classes that exist in a new PHP namespace to allow differentiation from the existing XML-oriented DOM classes.
PHP 8.3 and below - default character set ISO-8859-1
DOMDocument::loadHTML will treat your string as being in ISO-8859-1 (the HTTP/1.1 default character set) unless you tell it otherwise. This results in UTF-8 strings being interpreted incorrectly.
PHP 8.4 - DOM HTML5 parsing and serialization
- https://wiki.php.net/rfc/domdocument_html5_parser
- https://wiki.php.net/todo/php84 - Jul 16 2024 Feature freeze How PHP 8.4 Will Be Improved to Provide Better Support to Parse and Process HTML5 Pages and Files
Author
kirishimayuu ([email protected])
License
Yukanoe\HTML is licensed under the MIT License - see the LICENSE file for details.
All versions of html with dependencies
ext-libxml Version *