From 857433fc027da888f1b4c25cb0f990eb844db0e8 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko <rezkiy37@gmail.com> Date: Fri, 26 Apr 2024 15:33:01 +0200 Subject: [PATCH] integrate hasURL --- src/components/ReportActionItem/TaskView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ReportActionItem/TaskView.tsx b/src/components/ReportActionItem/TaskView.tsx index 0c8b23109104..181e259408d6 100644 --- a/src/components/ReportActionItem/TaskView.tsx +++ b/src/components/ReportActionItem/TaskView.tsx @@ -23,6 +23,7 @@ import getButtonState from '@libs/getButtonState'; import Navigation from '@libs/Navigation/Navigation'; import * as OptionsListUtils from '@libs/OptionsListUtils'; import * as ReportUtils from '@libs/ReportUtils'; +import * as Url from '@libs/Url'; import * as Session from '@userActions/Session'; import * as Task from '@userActions/Task'; import CONST from '@src/CONST'; @@ -150,7 +151,7 @@ function TaskView({report, shouldShowHorizontalRule, ...props}: TaskViewProps) { numberOfLinesTitle={0} interactive={!isDisableInteractive} shouldRenderAsHTML - shouldEscapeText={false} + shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false} /> </OfflineWithFeedback> <OfflineWithFeedback pendingAction={report.pendingFields?.managerID}>