Learn R Programming

jmvcore (version 2.7.38)

htmlEscape: Escape HTML special characters

Description

Escape HTML special characters

Usage

htmlEscape(text, attribute = FALSE)

Value

the escaped character vector

Arguments

text

a character vector to escape

attribute

logical; if TRUE, also escapes quotes and newlines for use in HTML attribute values