Skip to contents

Escapes the characters that SVG code reserves, &, <, > and ", so that a text, such as the name of a repository, shows as it is.

Usage

esc(x)

Arguments

x

Text.

Value

The text, escaped.

Examples

rghcard:::esc('R & Python <"tips">')
#> [1] "R &amp; Python &lt;&quot;tips&quot;&gt;"