mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-14 11:45:57 +00:00
@@ -49,7 +49,7 @@ app.get('/source/:id', (req, res)=>{
|
|||||||
HomebrewModel.get({ shareId: req.params.id })
|
HomebrewModel.get({ shareId: req.params.id })
|
||||||
.then((brew)=>{
|
.then((brew)=>{
|
||||||
const text = brew.text.replaceAll('<', '<').replaceAll('>', '>');
|
const text = brew.text.replaceAll('<', '<').replaceAll('>', '>');
|
||||||
return res.send(`<code><pre>${text}</pre></code>`);
|
return res.send(`<code><pre style="white-space: pre-wrap;">${text}</pre></code>`);
|
||||||
})
|
})
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user