escape_HTML: Escape Reserved HTML Characters

Description Usage Arguments Details Value Author(s) Examples

View source: R/yarr.R

Description

The escape_HTML function escapes reserved HTML characters from a character vector.

Usage

1

Arguments

text

A character vector.

Details

The escape_HTML function escapes the reserved HTML characters from a character vector. The HTML reserved characters "&", "\"", "'", ">", and "<" are replaced by "&amp;", "&quot;", "&apos;", "&gt;", and "&lt;" respectively.

Value

A character vector.

Author(s)

Matt Shotwell <Matt.Shotwell@Vanderbilt.edu>

Examples

1
2
    escape_HTML("x <- pi")
    escape_HTML("famous \"quotes\"")

yarr documentation built on May 2, 2019, 5:17 p.m.

Related to escape_HTML in yarr...