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

Commit

Permalink
fix: Escape messages during deserialization by default
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Apr 19, 2022
1 parent 744aba4 commit 71eab93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/deserialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function parsePlainTextMessage(
}, [] as Part[]);
}

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

0 comments on commit 71eab93

Please sign in to comment.