@@ -1,6 +1,7 @@
<script>
import Nested from './Nested.svelte';
let src = './dancing-man.gif';
+ let string = `this string contains some <strong>HTML!!!</strong>`;
</script>
@@ -18,4 +19,5 @@
<p>This is a paragraph.</p>
<Nested/>
<img src={src} alt="A man dances.">
+ <p>{@html string}</p>
</div>
@@ -2,7 +2,8 @@ import App from './App.svelte';
import App2 from './App2.svelte';
var app = new App({
- target: document.body
+ target: document.body,
+ props: {name: "World"}
});
var app2 = new App2({