mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-03 11:31:50 +02:00
Support rich text book descriptions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user