From 57d869d0289e24bf564ad76b62597846d27c4611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Marche?= <35939574+ecstrema@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:00:15 +0100 Subject: [PATCH] [docs] move `@html` tutorial to end (partly fixing #7253) (#7254) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Move @html tutorial to end * move debug and html tag into one section * rename --------- Co-authored-by: Rémi Marche <35939574+Marr11317@users.noreply.github.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: Simon Holthausen --- .../{07-making-an-app => 06-making-an-app}/app-a/App.svelte | 0 .../{07-making-an-app => 06-making-an-app}/text.md | 0 site/content/tutorial/18-debugging/meta.json | 3 --- .../01-debug/app-a/App.svelte | 0 .../01-debug/app-b/App.svelte | 0 .../{18-debugging => 18-special-tags}/01-debug/text.md | 0 .../02-html-tags}/app-a/App.svelte | 0 .../02-html-tags}/app-b/App.svelte | 0 .../06-html-tags => 18-special-tags/02-html-tags}/text.md | 2 +- site/content/tutorial/18-special-tags/meta.json | 3 +++ 10 files changed, 4 insertions(+), 4 deletions(-) rename site/content/tutorial/01-introduction/{07-making-an-app => 06-making-an-app}/app-a/App.svelte (100%) rename site/content/tutorial/01-introduction/{07-making-an-app => 06-making-an-app}/text.md (100%) delete mode 100644 site/content/tutorial/18-debugging/meta.json rename site/content/tutorial/{18-debugging => 18-special-tags}/01-debug/app-a/App.svelte (100%) rename site/content/tutorial/{18-debugging => 18-special-tags}/01-debug/app-b/App.svelte (100%) rename site/content/tutorial/{18-debugging => 18-special-tags}/01-debug/text.md (100%) rename site/content/tutorial/{01-introduction/06-html-tags => 18-special-tags/02-html-tags}/app-a/App.svelte (100%) rename site/content/tutorial/{01-introduction/06-html-tags => 18-special-tags/02-html-tags}/app-b/App.svelte (100%) rename site/content/tutorial/{01-introduction/06-html-tags => 18-special-tags/02-html-tags}/text.md (57%) create mode 100644 site/content/tutorial/18-special-tags/meta.json diff --git a/site/content/tutorial/01-introduction/07-making-an-app/app-a/App.svelte b/site/content/tutorial/01-introduction/06-making-an-app/app-a/App.svelte similarity index 100% rename from site/content/tutorial/01-introduction/07-making-an-app/app-a/App.svelte rename to site/content/tutorial/01-introduction/06-making-an-app/app-a/App.svelte diff --git a/site/content/tutorial/01-introduction/07-making-an-app/text.md b/site/content/tutorial/01-introduction/06-making-an-app/text.md similarity index 100% rename from site/content/tutorial/01-introduction/07-making-an-app/text.md rename to site/content/tutorial/01-introduction/06-making-an-app/text.md diff --git a/site/content/tutorial/18-debugging/meta.json b/site/content/tutorial/18-debugging/meta.json deleted file mode 100644 index 5eeed281d3..0000000000 --- a/site/content/tutorial/18-debugging/meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "title": "Debugging" -} \ No newline at end of file diff --git a/site/content/tutorial/18-debugging/01-debug/app-a/App.svelte b/site/content/tutorial/18-special-tags/01-debug/app-a/App.svelte similarity index 100% rename from site/content/tutorial/18-debugging/01-debug/app-a/App.svelte rename to site/content/tutorial/18-special-tags/01-debug/app-a/App.svelte diff --git a/site/content/tutorial/18-debugging/01-debug/app-b/App.svelte b/site/content/tutorial/18-special-tags/01-debug/app-b/App.svelte similarity index 100% rename from site/content/tutorial/18-debugging/01-debug/app-b/App.svelte rename to site/content/tutorial/18-special-tags/01-debug/app-b/App.svelte diff --git a/site/content/tutorial/18-debugging/01-debug/text.md b/site/content/tutorial/18-special-tags/01-debug/text.md similarity index 100% rename from site/content/tutorial/18-debugging/01-debug/text.md rename to site/content/tutorial/18-special-tags/01-debug/text.md diff --git a/site/content/tutorial/01-introduction/06-html-tags/app-a/App.svelte b/site/content/tutorial/18-special-tags/02-html-tags/app-a/App.svelte similarity index 100% rename from site/content/tutorial/01-introduction/06-html-tags/app-a/App.svelte rename to site/content/tutorial/18-special-tags/02-html-tags/app-a/App.svelte diff --git a/site/content/tutorial/01-introduction/06-html-tags/app-b/App.svelte b/site/content/tutorial/18-special-tags/02-html-tags/app-b/App.svelte similarity index 100% rename from site/content/tutorial/01-introduction/06-html-tags/app-b/App.svelte rename to site/content/tutorial/18-special-tags/02-html-tags/app-b/App.svelte diff --git a/site/content/tutorial/01-introduction/06-html-tags/text.md b/site/content/tutorial/18-special-tags/02-html-tags/text.md similarity index 57% rename from site/content/tutorial/01-introduction/06-html-tags/text.md rename to site/content/tutorial/18-special-tags/02-html-tags/text.md index ff547247e2..0da4708020 100644 --- a/site/content/tutorial/01-introduction/06-html-tags/text.md +++ b/site/content/tutorial/18-special-tags/02-html-tags/text.md @@ -12,4 +12,4 @@ In Svelte, you do this with the special `{@html ...}` tag:

{@html string}

``` -> Svelte doesn't perform any sanitization of the expression inside `{@html ...}` before it gets inserted into the DOM. In other words, if you use this feature it's critical that you manually escape HTML that comes from sources you don't trust, otherwise you risk exposing your users to XSS attacks. +> **Warning!** Svelte doesn't perform any sanitization of the expression inside `{@html ...}` before it gets inserted into the DOM. In other words, if you use this feature it's **critical** that you manually escape HTML that comes from sources you don't trust, otherwise you risk exposing your users to XSS attacks. diff --git a/site/content/tutorial/18-special-tags/meta.json b/site/content/tutorial/18-special-tags/meta.json new file mode 100644 index 0000000000..06e1732030 --- /dev/null +++ b/site/content/tutorial/18-special-tags/meta.json @@ -0,0 +1,3 @@ +{ + "title": "Special tags" +} \ No newline at end of file