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
In modern ember (~ since ~4 years ago), folks should be using dompurify directly,
It can be done like this, following their instructions: https://github.com/cure53/DOMPurify
npm add dompurify
in a component:
import * as DOMPurify from 'dompurify'; export default class Demo extends Component { sanitize = (x) => DOMPurify.sanitize(x); // or get sanitized() { return DOMPurify.sanitize(this.args.something); } }
{{{this.sanitize @something}}} {{{this.sanitized}}
See also: https://guides.emberjs.com/release/in-depth-topics/rendering-values/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In modern ember (~ since ~4 years ago), folks should be using dompurify directly,
It can be done like this, following their instructions: https://github.com/cure53/DOMPurify
in a component:
See also: https://guides.emberjs.com/release/in-depth-topics/rendering-values/
The text was updated successfully, but these errors were encountered: