Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4ad9c7d

Browse files
committed
fix: Escape messages during deserialization by default
1 parent c82bdd4 commit 4ad9c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/deserialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export function parsePlainTextMessage(
285285
}, [] as Part[]);
286286
}
287287

288-
export function parseEvent(event: MatrixEvent, pc: PartCreator, opts: IParseOptions = {}) {
288+
export function parseEvent(event: MatrixEvent, pc: PartCreator, opts: IParseOptions = { shouldEscape: true }) {
289289
const content = event.getContent();
290290
let parts: Part[];
291291
const isEmote = content.msgtype === "m.emote";

0 commit comments

Comments
 (0)