bwop. readability

This commit is contained in:
ewin 2025-05-09 01:33:38 -04:00
parent ebbf2c6ec8
commit 487022ce15
Signed by: erin
SSH key fingerprint: SHA256:clvLPaxKthBet+VUQTKQdDkjaqg2/KnYHQaPASp5pFE

View file

@ -10,7 +10,7 @@ createServer(async (request, response) => {
response.writeHead(200, { response.writeHead(200, {
'content-type': 'text/html', 'content-type': 'text/html',
}).end( }).end(
`<pre>${ `<pre style="white-space:pre-wrap;text-indent:4ch hanging each-line">${
(await readFile('a.txt', {flag: 'a+', encoding: 'utf8'})) (await readFile('a.txt', {flag: 'a+', encoding: 'utf8'}))
// ugh, fine, i'll html escape it. no xss for you // ugh, fine, i'll html escape it. no xss for you
.replace(/[<>&'"]/g, match => ({ .replace(/[<>&'"]/g, match => ({