Download the PHP package stevebauman/hypertext without Composer
On this page you can find all versions of the php package stevebauman/hypertext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stevebauman/hypertext
More information about stevebauman/hypertext
Files in stevebauman/hypertext
Download stevebauman/hypertext
More information about stevebauman/hypertext
Files in stevebauman/hypertext
Vendor stevebauman
Package hypertext
Short Description The best HTML to text transformer
License MIT
Package hypertext
Short Description The best HTML to text transformer
License MIT
Please rate this library. Is it a good library?
Informations about the package hypertext
Hypertext
A PHP HTML to pure text transformer that beautifully handles various and malformed HTML.
Hypertext is excellent at pulling text content out of any HTML based document and automatically:
- Removes CSS
- Removes scripts
- Removes headers
- Removes non-HTML based content
- Preserves spacing
- Preserves links (optional)
- Preserves new lines (optional)
It is directed at using the output in LLM related tasks, such as prompts and embeddings.
Installation
Usage
Example
For larger examples, please view the tests/Fixtures directory.
Input:
Output (Pure Text):
Output (Keep New Lines):
Output (Keep Links):
Output (Keep Both):
All versions of hypertext with dependencies
PHP Build Version
Package Version
Requires
ezyang/htmlpurifier Version
^4.16
The package stevebauman/hypertext contains the following files
Loading the files please wait ....