add links

This commit is contained in:
Daniella / Tove 2022-01-19 07:30:55 +01:00 committed by GitHub
parent 3f7c5ed078
commit 12a5455f84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,7 @@
.replaceAll('["\n', '<pre>').replaceAll('\n"]', '</pre>')
.replaceAll('["" \n', '<pre>').replaceAll('\n ""]', '</pre>')
.replaceAll('\n', '<br/>')
.replaceAll(/(https?:\/\/[^ \n]+)/g, '<a href="$1" target="blank">$1</a>')
if (postid != -1 || id == '') {
if(makeForm) {
if(postid != -1)