Solved little issue
This commit is contained in:
1 parent
65f46172a7
commit
f3131754f9
2 files changed
+4
-4
No files matched your search
@@ -162,7 +162,6 @@ router.get('/:server', async function (req, res) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
var html = converter.makeHtml(server.long_description);
|
var html = converter.makeHtml(server.long_description);
|
||||||
console.log(html);
|
|
||||||
html = sanitizeHtml(html,
|
html = sanitizeHtml(html,
|
||||||
{ allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
|
{ allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
|
||||||
res.render('server/index', {
|
res.render('server/index', {
|
||||||
|
|||||||
@@ -4,12 +4,13 @@
|
|||||||
<div class="p-10 bg-blue-color w-full text-white h-full m-4 lg:mx-14 text-ellipsis lg:w-2/3">
|
<div class="p-10 bg-blue-color w-full text-white h-full m-4 lg:mx-14 text-ellipsis lg:w-2/3">
|
||||||
<p class="text-white text-clip">
|
<p class="text-white text-clip">
|
||||||
<pre style="white-space: pre-wrap;" class="text-clip break-wordsw-full h-full"><br>
|
<pre style="white-space: pre-wrap;" class="text-clip break-wordsw-full h-full"><br>
|
||||||
<% if(typeof users.biography != 'undefined') { %>
|
<% if(!users.biography){ %>
|
||||||
|
User Has No biography
|
||||||
|
<% else if(typeof users.biography != 'undefined') { %>
|
||||||
<%= users.biography %>
|
<%= users.biography %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
User Has No biography
|
User Has No biography
|
||||||
|
<%} %>
|
||||||
<%} %>
|
|
||||||
</pre>
|
</pre>
|
||||||
</p><br>
|
</p><br>
|
||||||
Bots owned by this user: <%= bots.length %><br>
|
Bots owned by this user: <%= bots.length %><br>
|
||||||
|
|||||||
Reference in new issue
Block a user