Escape HTML
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import escapeHtml from 'escape-html';
|
||||
|
||||
export function getNowPlayingNames(nowPlayingItem, includeNonNameInfo) {
|
||||
let topItem = nowPlayingItem;
|
||||
let bottomItem = null;
|
||||
@@ -59,13 +61,13 @@ export function getNowPlayingNames(nowPlayingItem, includeNonNameInfo) {
|
||||
const list = [];
|
||||
|
||||
list.push({
|
||||
text: topText,
|
||||
text: escapeHtml(topText),
|
||||
item: topItem
|
||||
});
|
||||
|
||||
if (bottomText) {
|
||||
list.push({
|
||||
text: bottomText,
|
||||
text: escapeHtml(bottomText),
|
||||
item: bottomItem
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user