This commit is contained in:
Daniella 2022-01-17 10:45:46 +01:00 committed by GitHub
parent 3223b0f58a
commit 4f12355720
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@
const makeForm = id == comment || postid == -1
ret +=
`<post><div class="content"><h3>${post.author}: ${post.title}</h3>` +
`<post><div class="content"><h3>${post.author.replaceAll('<','&lt;').replaceAll('>','&gt;')}: ${post.title.replaceAll('<','&lt;').replaceAll('>','&gt;')}</h3>` +
post.content.replaceAll('<','&lt;').replaceAll('>','&gt;')
.replaceAll('[* ', '<i>').replaceAll(' *]', '</i>')
.replaceAll('[** ', '<b>').replaceAll(' **]', '</b>')