diff --git a/studio/src/app/services/editor/publish/publish.service.tsx b/studio/src/app/services/editor/publish/publish.service.tsx index bc7908893..5075908c2 100644 --- a/studio/src/app/services/editor/publish/publish.service.tsx +++ b/studio/src/app/services/editor/publish/publish.service.tsx @@ -208,6 +208,7 @@ export class PublishService { }; const cleanApiSlide: ApiSlide = await this.convertSlideQRCode(apiSlide); + cleanApiSlide.content = await this.cleanNotes(apiSlide.content); resolve(cleanApiSlide); }); @@ -235,6 +236,19 @@ export class PublishService { }); } + private cleanNotes(content: string): Promise { + return new Promise((resolve) => { + if (!content || content === undefined || content === '') { + resolve(content); + return; + } + + let result: string = content.replace(/
(.*?)<\/div>/gis, ''); + + resolve(result); + }); + } + private convertSlideQRCode(apiSlide: ApiSlide): Promise { return new Promise(async (resolve) => { if (!apiSlide) {