How to use DomSanitizer inside a function
问题 Hi I´m triyin to build a function to be reusable, and sanitize some content, but I don´t know hoe to call DomSanitizer it allways give me the error that is and abstract class. Here is my function: export function PostFormat(post){ let sanitizer: DomSanitizer; // TODO! post['title'] = sanitizer.bypassSecurityTrustHtml(post['title']['rendered']); post['author'] = post['_embedded']['author'][0]; post['content'] = sanitizer.bypassSecurityTrustHtml(post['content']['rendered']); post['excerpt'] =