Package 'xutils'

Title: Utility Functions of Fangzhou Xie
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.
Authors: Fangzhou Xie [aut, cre]
Maintainer: Fangzhou Xie <[email protected]>
License: MIT + file LICENSE
Version: 0.0.2
Built: 2025-02-25 05:01:36 UTC
Source: https://github.com/fangzhou-xie/xutils

Help Index


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;"))