export class RichMediaExpander { private readonly content : string ; private readonly expanders : string [ ] ; constructor ( content , expanders = [ ] ) { this . content = content ; this . expanders = expanders ; } public uploadExpanders ( ) { let merge = this . expanders . join ( '\r\n' ) ; return this . content . replace ( '<head>' , '<head>' + merge ) ; } }