txx_sanitize_text: Sanitize text to be stored as data in an XML document

Description Usage Arguments Details Value Examples

View source: R/txx_sanitize_text.R

Description

This function takes a character string and returns a 'sanitized' version, suitable for storage as text within an XML document.

Usage

1

Arguments

text

A character string

Details

This function replaces any special characters within XML, and replaces them with the relevant XML escaped characters. As they are read in as XML, they should be transformed back into the proper version.

Value

A modified character string

Examples

1
txx_sanitize_text("Alice & Bob have been in \"Charlie's\" house for >5 minutes.")

michael-ccccc/textured documentation built on Dec. 21, 2021, 5:56 p.m.