he is a JavaScript library that provides robust HTML entity encoding and decoding, with full Unicode support. It supports all standardized named character references (e.g., ©, —), handles numeric and hex entities, and deals properly with astral Unicode symbols (i.e., code points outside the BMP). The library is designed so that he.decode(input) will safely convert HTML-entity encoded strings into proper Unicode text, and he.encode(text, options) will encode non-ASCII or special characters into safe entity references. It emphasizes correctness, security (avoiding common pitfalls when decoding entities), and broad compatibility (browser, Node.js). The API is straightforward, documented, and used across modules that require reliable entity handling (e.g., for HTML sanitization or templating). Its longevity and adoption make it a go-to library for developers needing entity handling beyond minimal ad-hoc hacks.

Features

  • Full support for named, numeric, and hex HTML character references
  • Correct handling of astral Unicode symbols (surrogate pairs)
  • Both encoding (.encode) and decoding (.decode) APIs
  • Configurable options (e.g., use named references) for encoding behavior
  • Works in browser & Node.js environments
  • MIT-licensed, minimal dependencies

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow he

he Web Site

Other Useful Business Software
The AI workplace management platform Icon
The AI workplace management platform

Plan smart spaces, connect teams, manage assets, and get insights with the leading AI-powered operating system for the built world.

By combining AI workflows, predictive intelligence, and automated insights, OfficeSpace gives leaders a complete view of how their spaces are used and how people work. Facilities, IT, HR, and Real Estate teams use OfficeSpace to optimize space utilization, enhance employee experience, and reduce portfolio costs with precision.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of he!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML

Registered

2025-11-24