Skip to content

[Feature Request] Add format: 'html' option to support HTML input #32

@vero-code

Description

@vero-code

Summary
While testing the Proofreader API (Origin Trial), I found that the model aggressively removes HTML tags from the input, treating them as noise or errors to be cleaned.

Steps to Reproduce

  1. Open the official Proofreader API Playground/Demo (or run locally).
  2. Input the following text containing an HTML tag and a typo:
    <div>The div is not closd
  3. Run the proofread function.

Actual Result
The model returns: "The div is not closed."
The <div> tag is completely removed from the output string.

Expected Result
The model should correct the typo but preserve the HTML structure:
<div>The div is not closed.

Impact
This behavior makes the API unsuitable for use cases involving technical documentation, code editors, or rich-text environments where markup must be preserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions