Module function reference

text

A reference entry for text

Module function · HTML

text text (string text) ⇒ string

Creates escaped HTML text.

Example

YASS
$html = HTML::text("5 < 10 & 10 > 5")

Input: 5 < 10 & 10 > 5

Output: 5 &lt; 10 &amp; 10 &gt; 5