mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove escapeHTML
This commit is contained in:
parent
a83301df95
commit
e8422e2c29
1 changed files with 3 additions and 8 deletions
|
@ -6,7 +6,6 @@ import {
|
||||||
} from '@jellyfin/sdk/lib/generated-client';
|
} from '@jellyfin/sdk/lib/generated-client';
|
||||||
import { Api } from '@jellyfin/sdk';
|
import { Api } from '@jellyfin/sdk';
|
||||||
import { getImageApi } from '@jellyfin/sdk/lib/utils/api/image-api';
|
import { getImageApi } from '@jellyfin/sdk/lib/utils/api/image-api';
|
||||||
import escapeHTML from 'escape-html';
|
|
||||||
|
|
||||||
import { appRouter } from 'components/router/appRouter';
|
import { appRouter } from 'components/router/appRouter';
|
||||||
import layoutManager from 'components/layoutManager';
|
import layoutManager from 'components/layoutManager';
|
||||||
|
@ -78,15 +77,11 @@ export function getTextActionButton(
|
||||||
text?: NullableString,
|
text?: NullableString,
|
||||||
serverId?: NullableString
|
serverId?: NullableString
|
||||||
): TextLine {
|
): TextLine {
|
||||||
if (!text) {
|
const title = text || itemHelper.getDisplayName(item);
|
||||||
text = itemHelper.getDisplayName(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
text = escapeHTML(text);
|
|
||||||
|
|
||||||
if (layoutManager.tv) {
|
if (layoutManager.tv) {
|
||||||
return {
|
return {
|
||||||
title: text
|
title
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +103,7 @@ export function getTextActionButton(
|
||||||
return {
|
return {
|
||||||
titleAction: {
|
titleAction: {
|
||||||
url,
|
url,
|
||||||
title: text,
|
title,
|
||||||
dataAttributes
|
dataAttributes
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue