Nothing
test_parsed_text <- function(input, output, index = 2, ...) {
parsed <- marquee_parse(input, ...)
expect_equal(parsed$text[index], output)
}
test_that("HTML entities work", {
# test some commonly used symbols
test_parsed_text(">", ">")
test_parsed_text("<", "<")
test_parsed_text("&", "&")
test_parsed_text("©", "©")
test_parsed_text("™", "™")
test_parsed_text(" ", "\u00A0")
# test symbols outside the 16-bit Unicode code points
test_parsed_text("𝔞", "\uD835\uDD1E")
test_parsed_text("𝔟", "\uD835\uDD1F")
test_parsed_text("𝔠", "\uD835\uDD20")
# test entity at beginning of longer string
test_parsed_text("> abcd efgh", "> abcd efgh")
# test entity at end of longer string
test_parsed_text("abcd efgh >", "abcd efgh >")
# entities get parsed regardless of whether html is ignored or not
test_parsed_text("><br>", ">", ignore_html = TRUE)
test_parsed_text("><br>", "><br>", ignore_html = FALSE)
})
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.