fix: escape the line-break regex in the quick-reply prefill

This commit is contained in:
Linus Rath
2026-08-29 18:42:26 +02:00
parent 9398b46795
commit 86c3ab9f28
+1 -2
View File
@@ -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
? `<div>${escapeHtml(prefillBody).replace(/␍?
/g, '<br>')}</div>`
? `<div>${escapeHtml(prefillBody).replace(/\r?\n/g, '<br>')}</div>`
: '';
return typed + buildInitialHtml(mode, {
from: { name: replyTo.from.name, email: replyTo.from.email },