Exercise 1: set:html Rendering Real HTML — Possible Solution
====================================================================
SETUP
------------------------------
A page row stored with:
body: "
Regular text with bold emphasis.
"
// src/layouts/PageLayout.astro (relevant excerpt)
{page.title}
CONFIRMATION
------------------------------
Viewing the rendered page in a browser shows "Regular text with bold
emphasis." with the word "emphasis" genuinely bold, and viewing the
page's own HTML source shows a real tag present in the DOM
- not the literal text "bold emphasis" printed on
the page.
WHY THIS WORKS AS AN ANSWER
------------------------------
It correctly demonstrates that set:html inserts the stored string as
real, parsed HTML markup rather than as plain escaped text, matching
the chapter's own description of what the directive does.