-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
Replaces htmlSafe import incorrectly #85
Comments
Actually, |
Guess I'm confused then - The 3.1 docs say |
I'm also seeing this behaviour on 2.18.2, It seems the /**
Mark a string as safe for unescaped output with Ember templates. If you
return HTML from a helper, use this function to
ensure Ember's rendering layer does not escape the HTML.
import { htmlSafe } from '@ember/string';
htmlSafe('<div>someString</div>')
@method htmlSafe
@for @ember/template
@static
@return {Handlebars.SafeString} A string that will not be HTML escaped by Handlebars.
@public
*/ It says |
The codemod inserts
import { htmlSafe } from '@ember/template'
but it should be from@ember/string
There is a corresponding bug in the Ember API documentation where it still lists the function under
@ember/template
The text was updated successfully, but these errors were encountered: