Skip to content

feat: HTML Entity Encoder & Decoder — named, numeric, and hex entity translator #98

Description

@ajithakdev

Summary

Add a dedicated HTML Entity Encoder and Decoder tool to safely convert special characters and symbols into HTML entities and vice versa.

Motivation

Developers and content creators routinely need to escape HTML tags and special symbols (like &, <, >, ", ', ©, —, €) when working with markup, email templates, or XML feeds, or decode garbled entity-escaped payloads copied from web pages or API responses.

Features

  • Bi-Directional Conversion:
    • Raw text / HTML ⇄ Encoded entities.
  • Multiple Encoding Modes:
    • Named Entities: e.g., &copy;, &amp;, &quot;, &lt;, &gt;.
    • Decimal Numeric Entities: e.g., &#169;, &#38;.
    • Hexadecimal Entities: e.g., &#xA9;, &#x26;.
    • Special Only: Only escape unsafe HTML characters (& < > " ').
    • Full Entity Set: Escape all non-ASCII characters.
  • Copy Actions: One-click copy with toast confirmation.
  • Stats: Shows character count and replaced entity count.

Engineering & Privacy

  • 100% Client-Side: Safe execution using native DOM APIs (DOMParser or temporary in-memory element textContent) and lookup tables.
  • Zero Dependencies: Pure browser Web APIs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersnew toolA new tool addition to the toolkit

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions