mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 22:01:37 +00:00
support rich text book descriptions
This commit is contained in:
parent
ed82a5aa19
commit
082a1e5bca
10 changed files with 47 additions and 27 deletions
|
|
@ -87,7 +87,7 @@ function fetchDescription(metadata) {
|
|||
// check if description is HTML or plain text. only plain text allowed
|
||||
// calibre stores < and > as < and >
|
||||
description = description.replace(/</g, '<').replace(/>/g, '>')
|
||||
return htmlSanitizer.stripAllTags(description)
|
||||
return htmlSanitizer.sanitize(description)
|
||||
}
|
||||
|
||||
function fetchGenres(metadata) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue