# HTML

HTML: [altophp.com/rst/rendering/html](https://altophp.com/rst/rendering/html/)

The HTML renderer emits semantic sections, paragraphs, lists, tables, code,
notes, references, and profile-enabled directives.

```php
use Alto\Rst\Rst;

$source = <<<'RST'
Guide
=====

Read the `project site <https://example.com>`_.
RST;

$html = Rst::sphinx()->toHtml($source);
```

Text and attributes are escaped. Hyperlinks resolve through the reference
graph and every destination passes through `HtmlPolicy`. Unknown constructs
degrade to inert output instead of raw HTML.

Directive handlers run only when the active profile enables their directive.
A structured directive body is rendered through the parent renderer, keeping
the same profile, references, and URL policy.

Rendering never reads a file. Include expansion is available only to explicit
conversion workflows with a `FileAccessPolicy`. See [Policy](https://altophp.com/rst/rendering/policy.md) and
[Security](https://altophp.com/rst/security.md) for the complete authority boundary.

---

Previous: [Rendering](https://altophp.com/rst/rendering.md)
Next: [Policy](https://altophp.com/rst/rendering/policy.md)

---

ALTO\RST: [altophp.com/rst](https://altophp.com/rst/)
ALTO(PHP): [altophp.com](https://altophp.com/)
