# HTML To Text

> Use this skill to convert HTML into clean plain text: removes script/style, turns block tags and <br> into newlines, strips remaining tags, unescapes HTML entities, and collapses whitespace. Deterministic, offline. The right first step before readability, word-count, or slop analysis on scraped or WordPress HTML.

- Skill: `ncreighton/html-to-text` (Agent Skill, multi-file: 9 files)
- Install (CLI): `npx skillmds@latest add ncreighton/html-to-text`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ncreighton/html-to-text/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: ncreighton (https://skillmd.com/u/ncreighton)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/ncreighton/html-to-text

---


# html-to-text

Use this skill to convert HTML into clean plain text: removes script/style, turns block tags and <br> into newlines, strips remaining tags, unescapes HTML entities, and collapses whitespace. Deterministic, offline. The right first step before readability, word-count, or slop analysis on scraped or WordPress HTML.

- **Kind**: tool  |  **Niche**: publishing  |  **Cost tier**: free  |  **Version**: 0.1.0

## Empire Integration
```python
import sys
sys.path.insert(0, r'C:\D\Claude Code Projects\_SHARED')
import empire_bootstrap  # wires all shared paths
```

## Usage

**As a CLI:**
```bash
python run.py --html <string>
```

**From a Python agent (ATEN runtime):**
```python
from skill_library import executor
result = executor.execute("html-to-text", {html=...})
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `html` | string | yes | HTML string to convert |

## Returns

`object` — `{"status": "ok"|"error", "result": ...}`

