From f97ac8d8c43acda5b2cda9bcb53a1bc291291c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Fri, 19 Apr 2024 08:58:01 +0200 Subject: [PATCH] Merge pull request #40525 from Expensify/revert-40200-fix/39496-parse-task-description-update-message Revert "Fix task description update message doesn't parse the markdown" (cherry picked from commit 2fadfd0e8ebe621a76eb5a5d3633d6b469c78299) --- src/components/ReportActionItem/TaskAction.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/ReportActionItem/TaskAction.tsx b/src/components/ReportActionItem/TaskAction.tsx index e1b36713592f..e85a2e708feb 100644 --- a/src/components/ReportActionItem/TaskAction.tsx +++ b/src/components/ReportActionItem/TaskAction.tsx @@ -1,4 +1,3 @@ -import ExpensiMark from 'expensify-common/lib/ExpensiMark'; import React from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; @@ -16,15 +15,10 @@ type TaskActionProps = { function TaskAction({action}: TaskActionProps) { const styles = useThemeStyles(); const message = TaskUtils.getTaskReportActionMessage(action); - const parser = new ExpensiMark(); return ( - {message.html ? ( - ${parser.replace(message.html)}`} /> - ) : ( - {message.text} - )} + {message.html ? ${message.html}`} /> : {message.text}} ); }