import { IHtmlEngineHelper } from './html-engine-helper.interface' ; import * as Handlebars from 'handlebars' ; export class BreakCommaHelper implements IHtmlEngineHelper { constructor ( private bars ) { } public helperFunc ( context , text ) { text = this . bars . Utils . escapeExpression ( text ) ; text = text . replace ( /,/g , ',<br>' ) ; return new Handlebars . SafeString ( text ) ; } }