Title: Utility Functions of Fangzhou Xie
Version: 0.0.2
Description: This is a collection of some useful functions when dealing with text data. Currently it only contains a very efficient function of decoding HTML entities in character vectors by 'Rcpp' routine.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.1.1
URL: https://github.com/fangzhou-xie/xutils, https://fangzhou-xie.github.io/xutils/index.html
BugReports: https://github.com/fangzhou-xie/xutils/issues
LinkingTo: Rcpp
Imports: Rcpp
Suggests: knitr, markdown, rmarkdown, textutils, bench, xml2, testthat (≥ 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: yes
Packaged: 2021-09-06 21:46:51 UTC; xiefangzhou
Author: Fangzhou Xie ORCID iD [aut, cre]
Maintainer: Fangzhou Xie <fangzhou.xie@rutgers.edu>
Repository: CRAN
Date/Publication: 2021-09-06 22:10:02 UTC

Decode a character vector

Description

This function is a wrapper around existing C++ code on decoding HTML entities. The original C++ code is given by Christoph. Please refer to the answer on SO here.

Usage

html_decode(str)

Arguments

str

A character vector

Value

Decoded character vector

Examples

html_decode(c("&amp;", "&euro;"))