-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(show): use show description as meta description
This patch updates the show page description to use the show description if it exists, and revert back to the Vogue inspired description if it does not. This patch also adds some XSS support that may be somewhat premature, but was easy enough to add that it felt it wouldn't hurt. Closes: NC-666
- Loading branch information
1 parent
c06e5c8
commit 7e2dc15
Showing
4 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import sanitizeHtml from 'sanitize-html' | ||
|
||
export function sanitize(html: string, options?: sanitizeHtml.IOptions): string | ||
export function sanitize(html: null, options?: sanitizeHtml.IOptions): null | ||
export function sanitize(html: string | null, options?: sanitizeHtml.IOptions): string | null | ||
export function sanitize(html: string | null, options?: sanitizeHtml.IOptions) { | ||
return html ? sanitizeHtml(html, options) : html | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.