diff --git a/src/core/components/providers/markdown.jsx b/src/core/components/providers/markdown.jsx index 361e4580..d058d176 100644 --- a/src/core/components/providers/markdown.jsx +++ b/src/core/components/providers/markdown.jsx @@ -2,8 +2,15 @@ import React, { PropTypes } from "react" import Remarkable from "react-remarkable" import sanitize from "sanitize-html" +const sanitizeOptions = { + textFilter: function(text) { + return text + .replace(/"/g, "\"") + } +} + function Markdown({ source }) { - const sanitized = sanitize(source) + const sanitized = sanitize(source, sanitizeOptions) return