# HTML to text

- Human page: https://happytails.ai/en/text-tools/html-to-text/
- Markdown: https://happytails.ai/en/text-tools/html-to-text.md
- Structured JSON: https://happytails.ai/agents/en/text-tools/html-to-text/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `html-to-text` |
| Category | text-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Inputs and settings

Text input: HTML source.

Example or placeholder shown in the interface (not a validated fixture):

```text
<p>Hello <strong>world</strong>.</p>
```

Paste HTML markup, not a website URL. Results update as you type. Up to 1,000,000 characters.

No additional settings are declared for this tool.

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Preserve readable paragraph structure and links; no remote fetch in initial tool.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "html-to-text",
  "category": "text-tools",
  "built": true,
  "requirements": "Preserve readable paragraph structure and links; no remote fetch in initial tool.",
  "implementation": {
    "fields": [],
    "experience": {
      "automatic": true,
      "single": false,
      "label": "HTML source",
      "placeholder": "<p>Hello <strong>world</strong>.</p>",
      "help": "Paste HTML markup, not a website URL. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Extract readable plain text from HTML markup.

## How to use HTML to text

1. Enter html source in the input field.
2. The result updates as you type. Adjust the available settings if needed.
3. Review the result, then use Copy result or a download link when available.

## What to expect

Extract readable plain text from HTML markup. Paste HTML source, not a website URL. Scripts and styles are removed; layout and formatting are not preserved.

### Try a small example

```
<p>Hello world</p>
```

## Useful next steps

- [HTML to markdown](https://happytails.ai/en/text-tools/html-to-markdown/): Convert HTML markup into Markdown. ([Markdown](https://happytails.ai/en/text-tools/html-to-markdown.md))

- [Remove extra spaces](https://happytails.ai/en/text-tools/remove-extra-spaces/): Tidy repeated spaces without losing line breaks. ([Markdown](https://happytails.ai/en/text-tools/remove-extra-spaces.md))

- [Word counter](https://happytails.ai/en/text-tools/word-counter/): Count words, characters and lines as you type. ([Markdown](https://happytails.ai/en/text-tools/word-counter.md))
