Description Usage Arguments Value Examples
The function drop.tags
takes as its input a character vector
x
, and returns a copy of x
from which all XML-like tags
have been removed. Moreover, in case of the setting
half_tags_too = TRUE
, any half tag at the beginning or the
end of x
is also remove.
This function is not truly XML-aware. It uses a very simple definition of
what is a ‘tag’. More specifically, any character sequence starting with
<
and ending
with >
is considered a ‘tag’. Inside such a the tag, between
<
and >
,
this function accepts any sequence of zero or more characters; all characters
are accepted inside a tag, with the exception of >
.
1 2 |
x |
the argument |
half_tags_too |
in case of the setting |
Returns a character vector that is a copy of x
from which all tags have been
removed.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.