diff --git a/maud/src/lib.rs b/maud/src/lib.rs index 5ec2663..23223c5 100644 --- a/maud/src/lib.rs +++ b/maud/src/lib.rs @@ -150,10 +150,12 @@ impl PreEscaped<String> { /// * `<` is escaped as `<` /// * `>` is escaped as `>` /// * `"` is escaped as `"` -/// * `'` is escaped as `'` /// /// All other characters are passed through unchanged. /// +/// **Note:** In versions prior to 0.13, the single quote (`'`) was +/// escaped as well. +/// /// # Example /// /// ``` @@ -180,7 +182,6 @@ impl<'a> fmt::Write for Escaper<'a> { b'<' => self.0.push_str("<"), b'>' => self.0.push_str(">"), b'"' => self.0.push_str("""), - b'\'' => self.0.push_str("'"), _ => unsafe { self.0.as_mut_vec().push(b) }, } }