Skip to contents

Tags a character vector with the S3 class "html" so that it prints via preview.html() as readable text instead of as a raw character vector.

Usage

as.html(x)

Arguments

x

a character vector, typically containing HTML markup

Value

x, with class "html" added

Examples

as.html("<b>bold</b>")
#> <b>bold</b>