encodeSVGSpecialChars     package:RSVGTipsDevice     R Documentation

_E_n_c_o_d_e _S_V_G _s_p_e_c_i_a_l _c_h_a_r_s (_a_m_p_e_r_s_a_n_d, _e_t_c)

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     encodeSVGSpecialChars(x, sub.special = TRUE)

_A_r_g_u_m_e_n_t_s:

       x: A vector of character data to be encode. 

sub.special: If 'FALSE', do not encode. 

_D_e_t_a_i_l_s:

     The following substitutions are made:

        '&'  &amp;
       '\''  &apos;
       '\"'  &quot;
       '\<'  &lt;
       '\>'  &gt;

_V_a_l_u_e:

     The vector 'x' with encodings as appropriate.

_A_u_t_h_o_r(_s):

     Tony Plate tplate@acm.org

