diff --git a/src/modules/SmartNotes/index.ts b/src/modules/SmartNotes/index.ts
index c402c9f7..7130847a 100644
--- a/src/modules/SmartNotes/index.ts
+++ b/src/modules/SmartNotes/index.ts
@@ -448,6 +448,24 @@ export class SmartNotes extends RcModuleV2 {
const note = await this._fetchNotesUntilFinished(telephonySessionId);
let noteHTMLString = note.data || '';
noteHTMLString = noteHTMLString.replaceAll('', '**').replaceAll('', '**');
+ if (noteHTMLString.indexOf('
\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('', '\n');
+ }
+ if (noteHTMLString.indexOf('\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('', '\n');
+ }
+ if (noteHTMLString.indexOf('\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('', '\n');
+ }
+ if (noteHTMLString.indexOf('
\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('
', '
\n');
+ }
+ if (noteHTMLString.indexOf('\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('', '\n');
+ }
+ if (noteHTMLString.indexOf('
\n') === -1) {
+ noteHTMLString = noteHTMLString.replaceAll('
', '
\n');
+ }
const doc = new DOMParser().parseFromString(noteHTMLString, 'text/html');
const purgedText = doc.body.textContent || '';
this.addSmartNoteTextStore(telephonySessionId, purgedText);
diff --git a/src/modules/ThirdPartyService/helper.ts b/src/modules/ThirdPartyService/helper.ts
index 4ed3e8a1..823c1bd3 100644
--- a/src/modules/ThirdPartyService/helper.ts
+++ b/src/modules/ThirdPartyService/helper.ts
@@ -248,7 +248,7 @@ interface Call {
partyId?: string;
}
-export function getTranscriptText(transcript: Transcript, call): string {
+export function getTranscriptText(transcript: Transcript, call: Call): string {
if (!transcript) {
return '';
}