From 86c3ab9f28d89ab2e33b8cc87d9e4c5746517f19 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:42:26 +0200 Subject: [PATCH] fix: escape the line-break regex in the quick-reply prefill --- src/screens/ComposeScreen.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screens/ComposeScreen.tsx b/src/screens/ComposeScreen.tsx index ee89dbbc..78758e6e 100644 --- a/src/screens/ComposeScreen.tsx +++ b/src/screens/ComposeScreen.tsx @@ -543,8 +543,7 @@ export default function ComposeScreen({ route, navigation }: Props) { // Quick reply "More options" hands the typed text over as prefillBody; // it goes above the quote. const typed = prefillBody - ? `
${escapeHtml(prefillBody).replace(/ ? -/g, '
')}
` + ? `
${escapeHtml(prefillBody).replace(/\r?\n/g, '
')}
` : ''; return typed + buildInitialHtml(mode, { from: { name: replyTo.from.name, email: replyTo.from.email },