diff --git a/views/post.ejs b/views/post.ejs index 3712e42..e57ca17 100644 --- a/views/post.ejs +++ b/views/post.ejs @@ -103,6 +103,7 @@ `
${date ? (`
${date.toUTCString()}
`) : ''}

${post.author.replaceAll('<','<').replaceAll('>','>')}: ${post.title.replaceAll('<','<').replaceAll('>','>')}

` + post.content.replaceAll('<','<').replaceAll('>','>') .replaceAll('[* ', '').replaceAll(' *]', '') + .replaceAll(/(https?:\/\/[^ \n]+)/g, '$1') .replaceAll('[** ', '').replaceAll(' **]', '') .replaceAll('[*** ', '').replaceAll(' ***]', '') .replaceAll('[_ ', '').replaceAll(' _]', '') @@ -113,7 +114,6 @@ .replaceAll('["\n', '
').replaceAll('\n"]', '
') .replaceAll('["" \n', '
').replaceAll('\n ""]', '
') .replaceAll('\n', '
') - .replaceAll(/(https?:\/\/[^ \n]+)/g, '$1') if (postid != -1 || id == '') { if(makeForm) { if(postid != -1)