Changeset 48027f2 in Klonkt for src/routes/admin-stats.js

Timestamp:
06/28/2026 10:23:01 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
8308c9ca
Parents:
3487567
git-author:
Robin Genis <roboburr@…> (06/28/2026 10:21:57 PM)
git-committer:
Robin Genis <roboburr@…> (06/28/2026 10:23:01 PM)
Message:

fix(og): stop double-escaping OG/meta content + keep apostrophes literal

og:title/description etc. were rendered as <%= _e(x) %> — _e() HTML-escaped, then EJS <%= %>
escaped again (e.g. "Jason's" -> "Jason&amp;#39;s"), and the lone ' -> &#39; which naive
link-preview scrapers (Signal/WhatsApp) show literally. Now _e() is emitted raw (<%- %>) and
no longer escapes ' (safe in a double-quoted attribute).

  • views/shell.ejs — _e() drops the ' escape; all <%= _e(...) %> -> <%- _e(...) %>
(No files)

Note: See TracChangeset for help on using the changeset viewer.