audit
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { mongoose } = require('../db-connection');
|
||||
const { escapeHtml } = require('../utils');
|
||||
|
||||
/**
|
||||
* Returns { text, html } for a staff member's signature.
|
||||
@@ -17,7 +18,7 @@ async function getStaffSignatureBlocks(userId) {
|
||||
if (sig.tagline) lines.push(sig.tagline);
|
||||
|
||||
const text = lines.join('\n');
|
||||
const html = lines.map(l => `<div>${l}</div>`).join('');
|
||||
const html = lines.map(l => `<div>${escapeHtml(l)}</div>`).join('');
|
||||
|
||||
return { text, html };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user