Skip to content

Escape live widget post titles - #253

Merged
lancewillett merged 1 commit into
masterfrom
p2hq-265-finish-escaping-titles-in-the-o2-live-posts-and-comments
Sep 1, 2026
Merged

Escape live widget post titles#253
lancewillett merged 1 commit into
masterfrom
p2hq-265-finish-escaping-titles-in-the-o2-live-posts-and-comments

Conversation

@lancewillett

Copy link
Copy Markdown
Contributor

Render Live Posts and Comments widget post titles as text at the final template boundary. This preserves translated untitled labels and long-word shortening without reparsing title content as HTML.

Replaces #243 with a smaller fix that does not create an intermediate DOM tree.

Testing:

  • npx grunt jshint
  • Browser regression in the paired P2 source change

@lancewillett

lancewillett commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author
Before After

The same Author-created title is shown before and after. The fixed widget displays the encoded markup as text while preserving title shortening and the untitled labels.


Adversarial review · gpt-5.6-sol

@lancewillett
lancewillett merged commit 4d286c5 into master Sep 1, 2026
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.

1 participant