mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-03 08:06:59 +00:00
fix: escape the line-break regex in the quick-reply prefill
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user