Rullst AcademyRullst Academy/Lesson
Rullst: a page comes alive · Lesson 05 / 06

When text stays text

A garden sign received the text <b>Lumi</b>. Did you want to display the sign or turn its text into markup? Separate those two tasks.

Learning paths6 min

Let's discover together

  1. 1

    In Rullst, the html! macro lets us insert a text value with {value}. In this use, special characters are escaped: < does not accidentally start a tag.

  2. 2

    If the text is <b>Lumi</b>, normal insertion displays those symbols as text. The HTML sent uses entities for special characters; the browser displays the readable sign.

  3. 3

    This protects that insertion point; it does not automatically make every application secure. This track uses fixed content and needs no raw HTML from other people.

✦
YOUR MISSION

Recognize the difference between text inserted into a page and markup defining its structure.

Now it's your turn

Discovery workshop

The garden sign

Compare the original text with the representation sent inside HTML.
Mini experiment

Learning simulation: compare cards and check your predictions. The browser is not compiling Rust or starting a server.

Text: <b>Lumi</b>
HTML: &lt;b&gt;Lumi&lt;/b&gt;
Build your answers and check when you are ready.
A moment to understand

What is the appropriate choice for displaying a text message?

I need a hint

The message should appear literally, without gaining the power to change the HTML structure.

Loading your journey…

Take it with you

Write a fictional message containing < or &. Explain the difference between displaying those symbols and interpreting them as markup.

At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.