Skip to content

Decode HTML entities in API output, or stop encoding on input first? #482

Open

Description

@caseysoftware

BaseObject::bind() runs htmlentities() on every string, so text is stored HTML-encoded. The proposal decodes on output for v1, which keeps storage consistent with the UI. The cleaner alternative is to stop encoding in bind() and escape in the templates, but that is a large, XSS-sensitive change across every view, and existing data would need converting.

Decision needed before: Phase 1 (#489).

Open question from the REST API and MCP server proposal (#471), section 17.

Activity

  1. added
    api
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions