guh
This commit is contained in:
parent
c4daa7886d
commit
f93b278c37
2 changed files with 3 additions and 3 deletions
|
@ -30,11 +30,11 @@ app.get("/view/:paste", async function (req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var converter = new Converter();
|
var converter = new Converter();
|
||||||
paste = converter.makeHtml(paste);
|
var text = converter.makeHtml(paste.data);
|
||||||
|
|
||||||
res.render("view", {
|
res.render("view", {
|
||||||
bot,
|
bot,
|
||||||
paste
|
text
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
Validate important information.
|
Validate important information.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% for(line of paste.data.split("\n")) { if(line.trim() == "") continue; %><p><%-line.trim()%></p><% } %>
|
<% for(line of text.split("\n")) { if(line.trim() == "") continue; %><p><%-line.trim()%></p><% } %>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
<%- include("../partials/footer.ejs"); %>
|
<%- include("../partials/footer.ejs"); %>
|
||||||
|
|
Loading…
Reference in a new issue