Skip to content

✨ feat(mq-lang): add html_escape, html_unescape, and strip_tags string functions - #2005

Merged
harehare merged 1 commit into
mainfrom
feat/html-escape-functions
Jul 12, 2026
Merged

✨ feat(mq-lang): add html_escape, html_unescape, and strip_tags string functions#2005
harehare merged 1 commit into
mainfrom
feat/html-escape-functions

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

Provide string-level HTML entity escaping/unescaping and tag-stripping, which was previously missing since to_html/from_html only convert the Markdown AST as a whole. html_unescape uses the html-escape crate to decode named and numeric character references.

Close #2002

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

…g functions

Provide string-level HTML entity escaping/unescaping and tag-stripping,
which was previously missing since to_html/from_html only convert the
Markdown AST as a whole. html_unescape uses the html-escape crate to
decode named and numeric character references.

Close #2002
@codspeed-hq

codspeed-hq Bot commented Jul 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/html-escape-functions (f5c49fa) with main (425bb58)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (8fbf0b0) during the generation of this report, so 425bb58 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare
harehare merged commit 37db944 into main Jul 12, 2026
12 checks passed
@harehare
harehare deleted the feat/html-escape-functions branch July 12, 2026 23:15
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.

Add html_escape / html_unescape / strip_tags string functions

1 participant