Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oddhill/php-html-unicode
Convert html tags to unicode chars. Written in php.
https://github.com/oddhill/php-html-unicode
Last synced: 23 days ago
JSON representation
Convert html tags to unicode chars. Written in php.
- Host: GitHub
- URL: https://github.com/oddhill/php-html-unicode
- Owner: oddhill
- Created: 2015-02-02T20:56:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-25T09:52:24.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T20:05:22.214Z (9 months ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### PHP helper functions to convert html tags to unicode chars.
This is a PHP-port from the examples in the comments here: https://code.google.com/p/google-diff-match-patch/wiki/Plaintext
#### Usage
```php
$htmlUnicode = new HtmlUnicode;
$plain = $htmlUnicode->html2plain($html);
$html = $htmlUnicode->plain2html($plain);
```