encodeSVGSpecialChars {RSVGTipsDevice} | R Documentation |
Encode SVG special chars (ampersand, etc) as the appropriate XML encoding.
encodeSVGSpecialChars(x, sub.special = TRUE, xent = FALSE)
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 |
The following substitutions are made:
Character | XML encoding | XML entity |
\& | & | & |
\' | ' |  |
\" | " | " |
\< | < | < |
\> | > | > |
The vector x
with encodings as appropriate.
Tony Plate tplate@acm.org