Nothing
test_that(".escape_html escapes ampersand", {
expect_equal(hypertext:::.escape_html("a&b"), "a&b")
})
test_that(".escape_html escapes less-than", {
expect_equal(hypertext:::.escape_html("a<b"), "a<b")
})
test_that(".escape_html escapes greater-than", {
expect_equal(hypertext:::.escape_html("a>b"), "a>b")
})
test_that(".escape_html escapes double quotes", {
expect_equal(hypertext:::.escape_html('a"b'), "a"b")
})
test_that(".escape_html escapes single quotes", {
expect_equal(hypertext:::.escape_html("a'b"), "a'b")
})
test_that(".escape_html escapes all special characters together", {
expect_equal(
hypertext:::.escape_html("&<>\"'"),
"&<>"'"
)
})
test_that(".escape_html does not double-escape ampersands", {
expect_equal(
hypertext:::.escape_html("&"),
"&amp;"
)
})
test_that(".escape_html returns plain strings unchanged", {
expect_equal(hypertext:::.escape_html("hello world"), "hello world")
})
test_that(".escape_html handles empty string", {
expect_equal(hypertext:::.escape_html(""), "")
})
test_that(".escape_html handles string with only special characters", {
expect_equal(hypertext:::.escape_html("<>"), "<>")
})
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.