Skip to contents

Add HTML Tags to Text

Usage

add_tag(text, tag = "h3")

Arguments

text

Text string

tag

HTML tag like p, b, h1 or other

Value

glue

character with HTML tags

See also

You can add tags to text using clean_tags() function

Examples

add_tag("Title Text", tag = "h2")
#> <h2> Title Text </h2>
add_tag("bold text", tag = "b")
#> <b> bold text </b>