https://github.com/nggit/php-xmlentities
Convert all Unicode characters and character references to numeric character references
https://github.com/nggit/php-xmlentities
Last synced: about 1 month ago
JSON representation
Convert all Unicode characters and character references to numeric character references
- Host: GitHub
- URL: https://github.com/nggit/php-xmlentities
- Owner: nggit
- Created: 2017-05-19T06:29:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T04:48:36.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T17:24:36.709Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP xmlentities
**Tip:** Rename this `md` file to `php` to test it on your web server.
© © with ❤ ';
$encoded = Nggit\PHPXMLEntities\NCR::encode($str);
### These are portable ASCII characters
echo $encoded;
// Source view:
//
© © with ❤
exit;
?>
That's it! This library doesn't use the `mbstring` or `iconv` extension for better compatibility.