Skip to content
Snippets Groups Projects
Unverified Commit 24f29241 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files
parent d1f338b6
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ class Static
def self.remove_problematic_characters(code)
# We don't want ' in the frontmatters!
code = code.gsub("&#39\;", "'")
# We don't want &amp: either
code = code.gsub('&', '&')
# /u0092 breaks everything, should be an apostrophe
code = code.gsub("\u0092".encode('utf-8'), "'")
# Same operation with the problematic character itself
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment