Nothing
## -----------------------
expect_equal(HTMLencode("test"), "test")
expect_equal(HTMLencode("<"), "<")
expect_equal(HTMLencode("&"), "&")
expect_equal(HTMLencode("&&"), "&&")
expect_equal(HTMLencode("& ;"), "&amp ;")
expect_equal(HTMLencode(";"), ";")
expect_equal(HTMLencode("test &"), "test &")
## -----------------------
expect_equal(HTMLdecode("&"), "&")
expect_equal(HTMLdecode(";"), ";")
expect_equal(HTMLdecode(";;"), ";;")
## -----------------------
s <- c("a & ba & b",
"test",
"&",
"a & ba",
"& ba",
"& aa &",
"a &",
"a & ba",
"a & ba"
)
expect_equal(HTMLdecode(s),
c("a & ba & b",
"test",
"&",
"a & ba",
"& ba",
"& aa &",
"a &",
"a & ba",
"a & ba"))
## no decoding
expect_equal(HTMLdecode("&", decimal = FALSE), "&")
expect_equal(HTMLdecode("™", hex = FALSE), "™")
## case x/X
expect_equal(HTMLdecode("&"), "&")
expect_equal(HTMLdecode("&"), "&")
## https://github.com/enricoschumann/textutils/issues/3
expect_equal(HTMLdecode("I'm ¬it; I tell you"),
"I'm \u00ACit; I tell you")
expect_equal(HTMLdecode("I'm ∉ I tell you"),
"I'm \u2209 I tell you")
expect_equal(HTMLdecode("¬in X"), "\u00ACin X")
expect_equal(HTMLdecode("∉ X"), "\u2209 X")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.