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
If I am sanitizing user text input &XYZ&, it gets converted to &XYZ&.
&XYZ&
&XYZ&
Any pointers on how to fix this?
The text was updated successfully, but these errors were encountered:
I am also facing issue string contain > which converted to > any solution or I can de sanitize on front end ? I don't want to remove sanisation.
>
>
Sorry, something went wrong.
I fixed this in angular by using Angular sanitize pipe.
import { Pipe, PipeTransform } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; @Pipe({ name: 'sanitizeHtml' }) export class SanitizeHtmlPipe implements PipeTransform { constructor(private _sanitizer: DomSanitizer) { } transform(value: string): SafeHtml { return this._sanitizer.bypassSecurityTrustHtml(value); } }
in .html file
<span [innerHTML]="specialist | sanitizeHtml"></span>
No branches or pull requests
If I am sanitizing user text input
&XYZ&
, it gets converted to&XYZ&
.Any pointers on how to fix this?
The text was updated successfully, but these errors were encountered: