diff --git a/portal.go b/portal.go
index 0015745..aca7996 100644
--- a/portal.go
+++ b/portal.go
@@ -1177,7 +1177,7 @@ func (portal *Portal) addRelaybotFormat(user *User, evt *mautrix.Event) bool {
}
if evt.Content.Format != mautrix.FormatHTML {
- evt.Content.FormattedBody = strings.ReplaceAll(html.EscapeString(evt.Content.Body), "\n", "
")
+ evt.Content.FormattedBody = strings.Replace(html.EscapeString(evt.Content.Body), "\n", "
", -1)
evt.Content.Format = mautrix.FormatHTML
}
data, err := portal.bridge.Config.Bridge.Relaybot.FormatMessage(evt, member)