html-entity-decoding

Decode named, decimal, and hexadecimal HTML entities in text.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill html-entity-decoding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html-entity-decoding
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.ai-rulez/domains/conversion-algorithms/skills/html-entity-decoding
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill html-entity-decoding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill decodes HTML entities within text, ensuring that special characters are displayed correctly and not as their encoded representations.

Core Features & Use Cases

  • Named Entity Decoding: Converts entities like &nbsp;, &lt;, &amp; to their corresponding characters (space, <, &).
  • Numeric Entity Decoding: Handles decimal (&#123;) and hexadecimal (&#x7B;) entities, converting them to their character equivalents.
  • Partial Entity Handling: Preserves incomplete or invalid entities to avoid data corruption.
  • Use Case: Cleaning up text scraped from the web that contains HTML entities, making it readable for display or further processing.

Quick Start

Use the html-entity-decoding skill to decode all html entities in the provided text.

Frequently Asked Questions about html-entity-decoding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decode HTML entities in text scraped from a web page?

To clean up web-scraped text, decoding HTML entities converts named, decimal, and hexadecimal formats into their correct character equivalents. This ensures special characters are displayed accurately for further processing.

What is the best way to convert named HTML entities like &amp; and &nbsp; to normal characters?

The best way to convert named HTML entities is to process the text through a decoder that maps formats like &amp; and &nbsp; to their corresponding characters. This transforms encoded text into a readable format without altering valid content.

Does HTML entity decoding handle both decimal and hexadecimal numeric formats?

HTML entity decoding handles both decimal and hexadecimal numeric formats. It processes encoded strings like decimal and hexadecimal entities, converting them into their proper character equivalents for accurate text representation.

How are partial or invalid HTML entities handled during text processing?

During text processing, partial or invalid HTML entities are preserved rather than being converted or removed. This approach prevents data corruption and ensures incomplete encoded strings remain intact within the decoded text output.

When do I need to decode HTML entities in my text processing workflow?

You need to decode HTML entities in your text processing workflow when cleaning up content scraped from the web. This makes the text readable for display or further processing by converting encoded special characters into their actual characters.