[PR #955] [MERGED] Ability to decode HTML Entities when all tags are stripped. Fixes #929 #3434

Closed
opened 2026-04-25 00:15:38 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/955
Author: @barrycarey
Created: 8/31/2022
Status: Merged
Merged: 8/31/2022
Merged by: @advplyr

Base: masterHead: issue-929-html-char-parsing


📝 Commits (2)

  • 3194b4c Ability to decode HTML Entities when all tags are stripped. Fixes #929
  • 99ea786 Optional match on ending ;

📊 Changes

2 files changed (+2249 additions, -3 deletions)

View changed files

server/utils/htmlEntities.js (+2235 -0)
📝 server/utils/htmlSanitizer.js (+14 -3)

📄 Description

Using the list of entities linked in the issue. Made the decoding optional in case there's a future need to skip the decode.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/955 **Author:** [@barrycarey](https://github.com/barrycarey) **Created:** 8/31/2022 **Status:** ✅ Merged **Merged:** 8/31/2022 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `issue-929-html-char-parsing` --- ### 📝 Commits (2) - [`3194b4c`](https://github.com/advplyr/audiobookshelf/commit/3194b4cd8705bea1ce2460dccf2d737139ff40de) Ability to decode HTML Entities when all tags are stripped. Fixes #929 - [`99ea786`](https://github.com/advplyr/audiobookshelf/commit/99ea7866c581447d0f5805d32cee2d183ac055a0) Optional match on ending ; ### 📊 Changes **2 files changed** (+2249 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `server/utils/htmlEntities.js` (+2235 -0) 📝 `server/utils/htmlSanitizer.js` (+14 -3) </details> ### 📄 Description Using the list of entities linked in the issue. Made the decoding optional in case there's a future need to skip the decode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:15:38 +02:00
adam closed this issue 2026-04-25 00:15:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3434