Skip to content

Commit 9586f1b

Browse files
committed
also & signs
1 parent 69465c1 commit 9586f1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/lib/package/backend.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,10 @@ class PackageBackend {
13531353
!line.startsWith('---'))
13541354
.take(10)
13551355
// prevent accidental HTML-tag creation
1356-
.map((line) => line.replaceAll('<', '[').replaceAll('>', ']'))
1356+
.map((line) => line
1357+
.replaceAll('<', '[')
1358+
.replaceAll('>', ']')
1359+
.replaceAll('&', ' '))
13571360
.map((line) =>
13581361
line.length < 76 ? line : '${line.substring(0, 70)}[...]')
13591362
.join('\n');

0 commit comments

Comments
 (0)