Skip to content

feat(json): add SetEscapeHTML to disable HTML escaping in JSON bodies - #113

Open
SAY-5 wants to merge 1 commit into
appleboy:masterfrom
SAY-5:feat/json-no-escape
Open

feat(json): add SetEscapeHTML to disable HTML escaping in JSON bodies#113
SAY-5 wants to merge 1 commit into
appleboy:masterfrom
SAY-5:feat/json-no-escape

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 19, 2026

Copy link
Copy Markdown

Closes #75. Adds an opt-in SetEscapeHTML(false) chainable setter so SetJSON/SetJSONInterface can serialize bodies without escaping <, > and &, as requested in the issue where the maintainer replied "PR Welcome". HTML escaping stays enabled by default, so existing behavior is unchanged.

@SAY-5
SAY-5 force-pushed the feat/json-no-escape branch from d0532ba to 3ecee14 Compare July 10, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch off escaping HTML when serializing JSON

1 participant