We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, When you use [sanitizeHtml]="false", the javascript is declared unsafe. See https://stackblitz.com/edit/ngx-md-exmaple-cgwjwk
Reason: In ngx-md.component.ts, 'set data' call onDataChange which use this.sanitizeHtml. But, sanitizeHtml is not initialized (when you use false).
IMHO, there are two corrections for this problem:
@Input() set data(value: string) { if (value) { this._data = value; setTimeout(() => { this.onDataChange(value); }); } }
Philippe
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
When you use [sanitizeHtml]="false", the javascript is declared unsafe.
See https://stackblitz.com/edit/ngx-md-exmaple-cgwjwk
Reason:
In ngx-md.component.ts, 'set data' call onDataChange which use this.sanitizeHtml.
But, sanitizeHtml is not initialized (when you use false).
IMHO, there are two corrections for this problem:
This is the first '@input()' and all is ok.
Philippe
The text was updated successfully, but these errors were encountered: