import { Injectable , SecurityContext } from '@angular/core' ; import { DomSanitizer } from '@angular/platform-browser' ; export interface EmojisRenderInfo { emojis : any [ ] ; getImageSrc : ( emoji : string ) => string ; className : string ; } @ Injectable ( ) export class ThyMarkdownParserService { constructor ( protected sanitizer ) { } getEmojisRender ( ) { return null ; } setHighLightWords ( ) { return [ ] ; } filterHTML ( html ) { return html ; } sanitizeHTML ( html ) { return this . sanitizer . sanitize ( SecurityContext . HTML , html ) ; } }