Commit e5dc7b4
Compile script tag Limitation: ' will cause compiler error because rust thinks it is a character literal.
Changed files (1)
Diff
@@ -234,3 +234,22 @@ fn test_space() { assert!(content.contains(expected)); }++#[test]+fn test_script_compiles() {+ let content = html! {{+ <script>+ function test() {+ let result = "TEST";++ if (result === "TEST") {+ console.log(result);+ }++ return result;+ }+ </script>+ }};++ assert!(content.contains("TEST"));+}