Skip to content

refactor(handler) Remove html-escape dependency from webui-handler#267

Merged
akroshg merged 2 commits intomainfrom
akrosh/remove-html-escape-from-handler
Apr 22, 2026
Merged

refactor(handler) Remove html-escape dependency from webui-handler#267
akroshg merged 2 commits intomainfrom
akrosh/remove-html-escape-from-handler

Conversation

@akroshg
Copy link
Copy Markdown
Contributor

@akroshg akroshg commented Apr 22, 2026

  • Adds inline html_encode module with encode_safe() (Cow fast-path, 18 tests)
  • Replaces 6 call sites in the handler
  • Removes html-escape + transitive utf8-width from handler's dependency tree
  • webui-parser retains html-escape for decode_html_entities
  • All 239 tests pass

akroshg and others added 2 commits April 22, 2026 14:47
- Fix license header to match repo convention (Copyright (c) / MIT license)
- Reduce module visibility from pub to pub(crate) (internal helper)
- Tighten single-quote escape test assertion (' only)
- Apply cargo fmt formatting fixes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mohamedmansour mohamedmansour changed the title Remove html-escape dependency from webui-handler refactor(handler) Remove html-escape dependency from webui-handler Apr 22, 2026
@akroshg akroshg merged commit 101959d into main Apr 22, 2026
21 checks passed
@akroshg akroshg deleted the akrosh/remove-html-escape-from-handler branch April 22, 2026 23:19
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.

2 participants