Skip to content

Should dartdoc escape HTML? #1458

Closed
Closed
@leonsenft

Description

@leonsenft

HTML written in a doc comment isn't escaped, and is thus rendered by the browser as HTML elements instead of text. Here's an example from AngularDart's documentation. Notice the <button>Increment</button> in the component template is rendered as an actual button.

Is this intended as a feature that you can write HTML in your documentation? Or should dartdoc escape HTML-sensitive characters in doc comments to prevent this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions