Learn R Programming

RTest (version 1.2.6)

htmlify_string: function to make strings xml and html compatible

Description

function to make strings xml and html compatible

Usage

htmlify_string(input_string)

Arguments

input_string

(character) A simple character string

Value

(character) The same string but incompatible characters are exchanged by HTML Name characters such as & for &

Examples

Run this code
# NOT RUN {
input_string <- "<5"

stopifnot(htmlify_string(input_string)=="<5")

# }

Run the code above in your browser using DataLab