chore: format
This commit is contained in:
@@ -452,10 +452,7 @@
|
||||
// Escape HTML entities in the line FIRST so we don't corrupt
|
||||
// user text that happens to contain < or >, then re-inject
|
||||
// the mention spans.
|
||||
const escaped = line
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
const escaped = line.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
||||
// Now replace the escaped mention patterns back into real spans
|
||||
const withMentions = escaped.replace(
|
||||
/<([@#$])([\w.\-:/]+)(?:\|([^&]*?))?>/g,
|
||||
|
||||
Reference in New Issue
Block a user