From f6e6cb6988ed5e6f6d02d0406af17f0a7457cea9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 8 Jan 2018 21:48:28 -0500 Subject: [PATCH] add test to ensure only <, > and & are escaped --- .../samples/html-non-entities-inside-elements/_config.js | 5 +++++ .../samples/html-non-entities-inside-elements/main.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 test/runtime/samples/html-non-entities-inside-elements/_config.js create mode 100644 test/runtime/samples/html-non-entities-inside-elements/main.html diff --git a/test/runtime/samples/html-non-entities-inside-elements/_config.js b/test/runtime/samples/html-non-entities-inside-elements/_config.js new file mode 100644 index 000000000000..bc217d6d020c --- /dev/null +++ b/test/runtime/samples/html-non-entities-inside-elements/_config.js @@ -0,0 +1,5 @@ +export default { + html: ` +
'foo'
+ ` +}; \ No newline at end of file diff --git a/test/runtime/samples/html-non-entities-inside-elements/main.html b/test/runtime/samples/html-non-entities-inside-elements/main.html new file mode 100644 index 000000000000..7b49c004db8e --- /dev/null +++ b/test/runtime/samples/html-non-entities-inside-elements/main.html @@ -0,0 +1 @@ +
'foo'
\ No newline at end of file