RepoJournal
Elixir & Phoenix

Elixir & Phoenix

Elixir, Phoenix, LiveView, and Ecto - the BEAM web stack

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Elixir & Phoenix Full archive →

The Wire · Showcase

EMOJI HANDLING BUG FIXED IN LIVEVIEW, ECTO SUBQUERY ORDER CORRECTED

By RepoJournal · Filed · About Elixir & Phoenix

Phoenix LiveView's HTMLFormatter was mangling multi-codepoint emojis in templates, and Ecto's query builder had subquery ordering issues - both now fixed.

Phoenix LiveView shipped a fix for a subtle but nasty bug where the HTMLFormatter was inserting extra characters when templates contained multi-codepoint emojis like the warning symbol ⚠️ [1]. The problem traced back to changes in #2112 that introduced byte-level arithmetic for preserving content in tags, which worked fine for ASCII text but failed when emojis took up more bytes than codepoints [2]. The fix replaces custom newline handling with binary pattern matching and updates line offset calculations to use binary operations instead of codepoint counting. This is the kind of edge case that slips through code review until someone ships a template with an emoji and watches formatting break in production. In the Ecto world, the query builder had its own ordering issue with subqueries [3] [4], now resolved. Neither of these are show-stoppers, but they're the kind of fixes that prevent silent failures in your templates and queries.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fix HTMLFormatter inserting extra characters in templates with multi-codepoint emojis (#4322) phoenixframework/phoenix_live_view
  2. [2] Fix HTMLFormatter inserting extra characters in templates with multi-codepoint emojis ↗ phoenixframework/phoenix_live_view
  3. [3] Fix subquery order in query builders ↗ elixir-ecto/ecto
  4. [4] Fix subquery order in query builders (#4745) elixir-ecto/ecto

Quick answers

What shipped in Elixir & Phoenix on July 6, 2026?
Phoenix LiveView's HTMLFormatter was mangling multi-codepoint emojis in templates, and Ecto's query builder had subquery ordering issues - both now fixed. In total, 2 commits and 2 pull requests landed.
Who contributed to Elixir & Phoenix on July 6, 2026?
2 developers shipped this update, including green-david and lukaszsamson.
What were the notable Elixir & Phoenix updates?
Fix HTMLFormatter inserting extra characters in templates with multi-codepoint emojis (#4322), Fix HTMLFormatter inserting extra characters in templates with multi-codepoint emojis, and Fix subquery order in query builders.

More from Elixir & Phoenix

Daily updates, in your inbox

Follow Elixir & Phoenix

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.