aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama_escape/src/lib.rs1
-rw-r--r--testing/tests/filters.rs2
-rw-r--r--testing/tests/simple.rs7
3 files changed, 3 insertions, 7 deletions
diff --git a/askama_escape/src/lib.rs b/askama_escape/src/lib.rs
index fcc36c6..577b793 100644
--- a/askama_escape/src/lib.rs
+++ b/askama_escape/src/lib.rs
@@ -129,7 +129,6 @@ impl Escaper for Html {
b'&' => escaping_body!(start, i, fmt, bytes, "&"),
b'"' => escaping_body!(start, i, fmt, bytes, """),
b'\'' => escaping_body!(start, i, fmt, bytes, "'"),
- b'/' => escaping_body!(start, i, fmt, bytes, "/"),
_ => (),
}
}
diff --git a/testing/tests/filters.rs b/testing/tests/filters.rs
index 22a8fa9..1f382f6 100644
--- a/testing/tests/filters.rs
+++ b/testing/tests/filters.rs
@@ -21,7 +21,7 @@ fn filter_escape() {
};
assert_eq!(
s.render().unwrap(),
- "// my <html> is "unsafe" & \
+ "// my <html> is "unsafe" & \
should be 'escaped'"
);
}
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index b6dd31a..c712900 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -40,12 +40,9 @@ struct EscapeTemplate<'a> {
#[test]
fn test_escape() {
- let s = EscapeTemplate { name: "<>&\"'/" };
+ let s = EscapeTemplate { name: "<>&\"'" };
- assert_eq!(
- s.render().unwrap(),
- "Hello, &lt;&gt;&amp;&quot;&#x27;&#x2f;!"
- );
+ assert_eq!(s.render().unwrap(), "Hello, &lt;&gt;&amp;&quot;&#x27;!");
}
#[derive(Template)]