html_character_entities 1.0.0+1 copy "html_character_entities: ^1.0.0+1" to clipboard
html_character_entities: ^1.0.0+1 copied to clipboard

A utility class containing maps of every HTML 4.01 character entity, including ASCII and hex codes, and methods to encode/decode strings with those character entities.

[1.0.0] - March 3, 2021 #

  • Migrated to null-safe code.

[0.1.2+2] - January 16, 2020 #

  • Formatting changes.

[0.1.2+1] - September 25, 2019 #

  • Strip leading 0s from numeric entities before lookup.

[0.1.2] - August 22, 2019 #

  • Added the [checkAmpsForEntities] option to the [encode] method.

[0.1.1] - August 16, 2019 #

  • Added support for hex code character entities.

  • Added missing ASCII codes for characters with HTML codes.

[0.1.0] - August 1, 2019 #

  • Added the [characterEntities] statically typed map to [HtmlCharacterEntities].

  • Added the [encode] method to [HtmlCharacterEntities].

  • Deprecated the [parse] method in favor of [decode]. [parse] still exists as a wrapper of [decode], but will be removed in a future release.

  • Wrote new tests.

[0.0.1 - 0.0.3] - July 7, 2019 #

  • Changed [RegExpMatch] type declarations to [Match].

  • Commented the [HtmlCharacterEntities] class.

  • Initial release.

21
likes
150
points
15
downloads

Publisher

verified publisherjamesalex.dev

Weekly Downloads

A utility class containing maps of every HTML 4.01 character entity, including ASCII and hex codes, and methods to encode/decode strings with those character entities.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

More

Packages that depend on html_character_entities