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

asHtml(x)

Arguments

x

a character vector, typically containing HTML markup

Value

x, with class "html" added

Examples

asHtml("<b>bold</b>")
#> <b>bold</b>