Description Usage Arguments Details Value
View source: R/txx_sanitize_tag_name.R
This function takes a character string, and returns a 'sanitized' version of it for use as an XML tag (following XML specifications - more details below). This function is called internally, however is useful for converting a list of labels for searching in the resultant XML document for a specific text tag(s).
1 | txx_sanitize_tag_name(tag_name)
|
tag_name |
A character string |
Changes made to the text (in this order):
Trims any white space around the tag,
Changes text to title case,
Replaces all ' ' with '_',
Removes any non-alphanumeric characters (aside from '_'),
Prefixes a '_' if the text starts with a number.
The character string, modified to be suitable for use as an XML tag
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.