From ac77d864fb316cbd121aa9402fe152f036e36999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 3 May 2021 14:54:36 +0200 Subject: [PATCH] DashboardLink: Fixes double escaping of > in dashboard link (#33617) * DashboardLink: Fixes double escaping of > in dashboard link * Update DashboardLinks.tsx --- .../features/dashboard/components/SubMenu/DashboardLinks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/components/SubMenu/DashboardLinks.tsx b/public/app/features/dashboard/components/SubMenu/DashboardLinks.tsx index 3c370041177..bbcb3354b9f 100644 --- a/public/app/features/dashboard/components/SubMenu/DashboardLinks.tsx +++ b/public/app/features/dashboard/components/SubMenu/DashboardLinks.tsx @@ -1,6 +1,6 @@ import React, { FC, useReducer } from 'react'; import { Icon, IconName, Tooltip } from '@grafana/ui'; -import { sanitize, sanitizeUrl } from '@grafana/data/src/text/sanitize'; +import { sanitizeUrl } from '@grafana/data/src/text/sanitize'; import { DashboardLinksDashboard } from './DashboardLinksDashboard'; import { getLinkSrv } from '../../../panel/panellinks/link_srv'; @@ -51,7 +51,7 @@ export const DashboardLinks: FC = ({ dashboard, links }) => { aria-label={selectors.components.DashboardLinks.link} > - {sanitize(linkInfo.title)} + {linkInfo.title} );