Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function filterMarked(content) {
return filterSync(() => {}, {
'spark-mention': ['data-object-type', 'data-object-id', 'data-object-url'],
a: ['href'],
b: [],
blockquote: ['class'],
strong: [],
i: [],
em: [],
pre: [],
code: ['class'],
br: [],
hr: [],
p: [],
ul: [],
ol: [],
li: [],
h1: [],
export function filterActivity(activityObject) {
const outputActivity = Object.assign({}, activityObject);
if (outputActivity.content) {
outputActivity.content = filterSync(() => {}, {
'spark-mention': ['data-object-type', 'data-object-id', 'data-object-url'],
a: ['href'],
b: [],
blockquote: ['class'],
strong: [],
i: [],
em: [],
pre: [],
code: ['class'],
br: [],
hr: [],
p: [],
ul: [],
ol: [],
li: [],
h1: [],