1 | import { IHtmlEngineHelper } from './html-engine-helper.interface';
|
2 | import * as Handlebars from 'handlebars';
|
3 |
|
4 | export class CleanParagraphHelper implements IHtmlEngineHelper {
|
5 | public helperFunc(context: any, text: string) {
|
6 | text = text.replace(/<p>/gm, '');
|
7 | text = text.replace(/<\/p>/gm, '');
|
8 | return new Handlebars.SafeString(text);
|
9 | }
|
10 | }
|