Ensure OAS3 Markdown fields are sanitized

This commit is contained in:
Kyle Shockey
2017-07-04 19:12:43 -07:00
parent 60701962b8
commit 8ed43a1329
2 changed files with 14 additions and 9 deletions

View File

@@ -1,10 +1,11 @@
import React from "react"
import ReactMarkdown from "react-markdown"
import { OAS3ComponentWrapFactory } from "../helpers"
import { sanitizer } from "core/components/providers/markdown"
export default OAS3ComponentWrapFactory(({ source }) => { return source ? (
<ReactMarkdown
source={source}
source={sanitizer(source)}
className={"renderedMarkdown"}
/>
) : null})