mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
Update custom metadata provider results to sanitize html descriptions #3880
This commit is contained in:
parent
e096da1b4d
commit
558173e086
3 changed files with 12 additions and 113 deletions
|
@ -1,6 +1,7 @@
|
|||
const axios = require('axios').default
|
||||
const Database = require('../Database')
|
||||
const Logger = require('../Logger')
|
||||
const htmlSanitizer = require('../utils/htmlSanitizer')
|
||||
|
||||
class CustomProviderAdapter {
|
||||
#responseTimeout = 30000
|
||||
|
@ -74,7 +75,7 @@ class CustomProviderAdapter {
|
|||
narrator,
|
||||
publisher,
|
||||
publishedYear,
|
||||
description,
|
||||
description: htmlSanitizer.sanitize(description),
|
||||
cover,
|
||||
isbn,
|
||||
asin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue