Skip to content

DEV: Deprecate the html-safe helper #33882

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

Closed
wants to merge 2 commits into from
Closed

DEV: Deprecate the html-safe helper #33882

wants to merge 2 commits into from

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Jul 27, 2025

Use import { htmlSafe } from "@ember/template" instead.

Use `import { htmlSafe } from "@ember/template"` instead.

export default function htmlSafe(string) {
deprecated(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to fire for anyone still using .hbs, and they'll have no way to resolve it.

How do you think about keeping this as a 'linting-only deprecation', until we eventually deprecate hbs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, closing for now!

@CvX CvX closed this Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants