mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Support rich text book descriptions
This commit is contained in:
parent
66b90e0841
commit
286185329d
14 changed files with 136 additions and 83 deletions
|
@ -2,6 +2,7 @@ const { DataTypes, Model } = require('sequelize')
|
|||
const Logger = require('../Logger')
|
||||
const { getTitlePrefixAtEnd, getTitleIgnorePrefix } = require('../utils')
|
||||
const parseNameString = require('../utils/parsers/parseNameString')
|
||||
const htmlSanitizer = require('../utils/htmlSanitizer')
|
||||
|
||||
/**
|
||||
* @typedef EBookFileObject
|
||||
|
@ -343,6 +344,7 @@ class Book extends Model {
|
|||
publishedDate: this.publishedDate,
|
||||
publisher: this.publisher,
|
||||
description: this.description,
|
||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
||||
isbn: this.isbn,
|
||||
asin: this.asin,
|
||||
language: this.language,
|
||||
|
@ -542,6 +544,7 @@ class Book extends Model {
|
|||
publishedDate: this.publishedDate,
|
||||
publisher: this.publisher,
|
||||
description: this.description,
|
||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
||||
isbn: this.isbn,
|
||||
asin: this.asin,
|
||||
language: this.language,
|
||||
|
@ -564,6 +567,7 @@ class Book extends Model {
|
|||
publishedDate: this.publishedDate,
|
||||
publisher: this.publisher,
|
||||
description: this.description,
|
||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
||||
isbn: this.isbn,
|
||||
asin: this.asin,
|
||||
language: this.language,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue