Skip to content

Commit

Permalink
EW-793 Delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneRadtke-Cap committed Jun 7, 2024
1 parent 4b67afa commit c66d724
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,11 @@ export class CommonCartridgeExportMapper {
}

private getTextTitle(text: string): string {
const cleanTitle = sanitizeHtml(text, {
const title = sanitizeHtml(text, {
allowedTags: [],
allowedAttributes: {},
});
const title = cleanTitle.slice(0, 50);
// .replace(/<[^>]*>?/gm, '')
// .replace(/<script/gi, '&lt;script');
/* if (text.length > 50) {
title = title.concat('...');
} */
}).slice(0, 50);

return title;
}
}

0 comments on commit c66d724

Please sign in to comment.