Skip to content

[newsfeed] document allowedBasicHtmlTags option#387

Merged
KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
egeekial:docs/newsfeed-allowed-basic-html-tags
Jun 29, 2026
Merged

[newsfeed] document allowedBasicHtmlTags option#387
KristjanESPERANTO merged 1 commit into
MagicMirrorOrg:developfrom
egeekial:docs/newsfeed-allowed-basic-html-tags

Conversation

@egeekial

Copy link
Copy Markdown

Documents the new allowedBasicHtmlTags newsfeed config option added in MagicMirrorOrg/MagicMirror#4176 (merged).

The option lets users opt into rendering a strict allowlist of basic inline HTML formatting tags (b, strong, i, em, u, br, code, s, sub, sup) in feed titles and descriptions, instead of escaping them. This fixes feeds (e.g. The Atlantic) that encode emphasis as entities. Any tag outside the safe list is ignored, and all other HTML is escaped, so injection is not possible. Default is [], preserving current behavior.

@KristjanESPERANTO KristjanESPERANTO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks 🙂

@KristjanESPERANTO KristjanESPERANTO merged commit 53f6851 into MagicMirrorOrg:develop Jun 29, 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.

2 participants