Learn R Programming

textutils (version 0.1-9)

HTMLdecode: Decode and Encode HTML Entities

Description

Decode and encode HTML entities.

Usage

HTMLdecode(x)
HTMLencode(x)

Arguments

x

character

Value

character

Details

Decodes to UTF-8.

References

https://www.w3.org/TR/html5/syntax.html#named-character-references

Examples

Run this code
# NOT RUN {
HTMLdecode(c("Max & Moritz",
             "4 < 9"))
# }

Run the code above in your browser using DataLab