context("escape_special")
test_that(
  "escape_special escapes all special values",
  {
    expected <- as.regex("\\\\ \\^ \\$ \\. \\| \\? \\* \\+ \\( \\) \\{ } \\[ ]")
    actual <- escape_special("\\ ^ $ . | ? * + ( ) { } [ ]")
    expect_equal(actual, expected)
  }
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.