diff --git a/src/pipes/parser/parser.ts b/src/pipes/parser/parser.ts index f60e8bf..b4c68e5 100644 --- a/src/pipes/parser/parser.ts +++ b/src/pipes/parser/parser.ts @@ -15,6 +15,9 @@ export class ParserPipe implements PipeTransform { constructor(protected _sanitizer: DomSanitizer) {} transform(value: string, ...args): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl { + let hregex = /href="([\S]+)"/g; + // value = value.replace(hregex, "class=\"ex-link\" href="); + value = value.replace(hregex, "onClick=\"window.open('$1', '_system', 'location=yes')\""); return this._sanitizer.bypassSecurityTrustHtml(value); } }