Skip to content

Show blogroll names and descriptions as plain text - #231

Merged
snoopdave merged 1 commit into
roller-6.1.xfrom
blogroll-plain-text
Oct 30, 2026
Merged

snoopdave merged 1 commit into
roller-6.1.xfrom
blogroll-plain-text

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Testing RC4 found that the blogroll showed entities on weblog pages: with the default weblogAdminsUntrusted=true, Roller stores a bookmark's name and description as sanitized HTML, and #221 escaped them again, so Tom & Jerry's showed as Tom & Jerry's.

  • The blogroll macro now shows bookmark names and descriptions as plain text: it removes tags, decodes entities and escapes the result once.
  • A bookmark with no description gets an empty title, not the previous bookmark's.
  • CHANGES.md says names and descriptions are shown as plain text.

Tested on Jetty with bookmarks named Tom & Jerry's, <b>Bold</b> link and one with script and image tags in the name and description: each renders as plain text with no tags left in the page. No automated test covers the macro.

Roller can store a bookmark's name and description as sanitized HTML, so
escaping them in the blogroll macro showed entities such as &#39; and
&quot; on weblog pages. The macro now removes tags, decodes entities and
escapes the result once.
@snoopdave
snoopdave merged commit 69d0d5e into roller-6.1.x Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant