diff --git a/layouts/index.activity_outbox.ajson b/layouts/index.activity_outbox.ajson
index 6c01d04ff3560fdc1f6553ec380731e6bdc9e644..9cb2490be189d5190e2b2b77150d3cb4ce5ed516 100644
--- a/layouts/index.activity_outbox.ajson
+++ b/layouts/index.activity_outbox.ajson
@@ -28,7 +28,7 @@
"object": {
"id": "{{ .Permalink }}",
"type": "Note",
- "content": "{{.Title}}{{ if .Summary }}<br>{{ .Summary.replace(/(?:\r\n|\r|\n)/g, '<br>') }}{{ end }}<br><a href='{{.Permalink}}'>{{.Permalink}}</a>",
+ "content": "{{.Title}}{{ if .Summary }}<br>{{ replace (replace .Summary "\n" "<br>") "\r" "" }}{{ end }}<br><a href='{{.Permalink}}'>{{.Permalink}}</a>",
"url": "{{.Permalink}}",
"attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}",
"to": "https://www.w3.org/ns/activitystreams#Public",