Exercise 3: Confirming Astro's Default Escaping — Possible Solution ==================================================================== THE CHANGE ------------------------------ // src/layouts/PageLayout.astro (temporarily changed)
Regular text with bold emphasis.
" CONFIRMATION ------------------------------ The rendered page now literally displays the text:Regular text with bold emphasis.
as visible characters on the screen - the angle brackets and tag names appear as plain text, not as real markup, and nothing renders bold at all. WHY THIS WORKS AS AN ANSWER ------------------------------ It correctly demonstrates that plain {page.body} interpolation HTML-escapes the string by default, printing the tags as literal text rather than parsing them - concrete proof that set:html is a genuine, deliberate opt-out of that default behavior, not simply an alternative spelling of the same thing.