diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js index 77eb670e..fd1e3449 100644 --- a/src/domain/session/room/timeline/deserialize.js +++ b/src/domain/session/room/timeline/deserialize.js @@ -345,7 +345,7 @@ class Deserializer { } export function parseHTMLBody(platform, mediaRepository, html) { - html = html.replace(/.+<\/mx-reply>/, ""); + html = html.replace(/.+<\/mx-reply>/s, ""); const parseResult = platform.parseHTML(html); const deserializer = new Deserializer(parseResult, mediaRepository); const parts = deserializer.parseAnyNodes(parseResult.rootNodes);