Skip to content
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

Deprecate unescaped HTML inside of expressions #2489

Merged
merged 10 commits into from
Jan 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update escape.ts
natemoo-re authored and Nate Moore committed Jan 31, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit aadc9462f1c47afd63f4d0bce56bd3447f58a65b
4 changes: 2 additions & 2 deletions packages/astro/src/runtime/server/escape.ts
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ export const escapeHTML = (string: any, { deprecated = false }: { deprecated?: b
console.warn(`Unescaped HTML content found inside expression!

The next minor version of Astro will automatically escape all
expression content. See https://err.astro.build/0001 for more info.
expression content. Please use the `set:html` directive.

Expression:
Expression content:
${string}`);
warned.add(string);