diff options
Diffstat (limited to 'code/src/markdown/render.rs')
-rw-r--r-- | code/src/markdown/render.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/code/src/markdown/render.rs b/code/src/markdown/render.rs index 7962561..75ebe43 100644 --- a/code/src/markdown/render.rs +++ b/code/src/markdown/render.rs @@ -74,14 +74,6 @@ pub fn blocks_to_html(blocks: Vec<Block>) -> String { out } -pub fn escape(text: &str) -> String { - text.replace("&", "&") - .replace("<", "<") - .replace(">", ">") - .replace("'", "’") - .replace("\"", """) -} - // TODO this is *really* bad fix fn fix_katex<'a>(s: &str) -> String { let e = s.find("<span class=\"katex-html\"").unwrap(); |