html_raw: Mark a string as HTML

View source: R/html.R

html_rawR Documentation

Mark a string as HTML

Description

Declares that x is already markup, so it is embedded verbatim rather than escaped when it becomes the child of an element. The counterpart to html_escape(): use it for markup you assembled yourself, never for text that came from outside.

Usage

html_raw(x)

Arguments

x

Character: Markup.

Value

Character of class rtemis_html.

Author(s)

EDG

Examples

html_span(html_raw("<em>emphasis</em>"))
# Without the marker the same string is text, and escaped:
html_span("<em>emphasis</em>")

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.