From 93be4c5fe688aaf5bf14b5c50bddb9ffafbffd7f Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 13 Apr 2024 14:33:37 +0800 Subject: [PATCH] parse task action html --- src/components/ReportActionItem/TaskAction.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ReportActionItem/TaskAction.tsx b/src/components/ReportActionItem/TaskAction.tsx index e85a2e708feb..94b152f61912 100644 --- a/src/components/ReportActionItem/TaskAction.tsx +++ b/src/components/ReportActionItem/TaskAction.tsx @@ -6,6 +6,7 @@ import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; import * as TaskUtils from '@libs/TaskUtils'; import type {ReportAction} from '@src/types/onyx'; +import ExpensiMark from 'expensify-common/lib/ExpensiMark'; type TaskActionProps = { /** Name of the reportAction action */ @@ -15,10 +16,11 @@ type TaskActionProps = { function TaskAction({action}: TaskActionProps) { const styles = useThemeStyles(); const message = TaskUtils.getTaskReportActionMessage(action); + const parser = new ExpensiMark(); return ( - {message.html ? ${message.html}`} /> : {message.text}} + {message.html ? ${parser.replace(message.html)}`} /> : {message.text}} ); }