encodeSVGSpecialChars: Encode SVG special chars (ampersand, etc)

Description Usage Arguments Details Value Author(s)

View source: R/SVG.R

Description

Encode SVG special chars (ampersand, etc) as the appropriate XML encoding.

Usage

1
encodeSVGSpecialChars(x, sub.special = TRUE, xent = FALSE)

Arguments

x

A vector of character data to be encode.

sub.special

If FALSE, do not encode.

xent

If FALSE, encode as XML encoding, if TRUE, encode as XML entity

Details

The following substitutions are made:

Character XML encoding XML entity
\& \& \&\#38
\' \' \&\#30
\" \" \&\#34
\< \&lt; \&\#60
\> \&gt; \&\#62

Value

The vector x with encodings as appropriate.

Author(s)

Tony Plate tplate@acm.org


RSVGTipsDevice documentation built on May 1, 2019, 8:20 p.m.