diff --git a/src/components/display/DictionaryDetails/DetailsSection/PhonologyDisplay.jsx b/src/components/display/DictionaryDetails/DetailsSection/PhonologyDisplay.jsx index b6cff4a..dbb92f1 100644 --- a/src/components/display/DictionaryDetails/DetailsSection/PhonologyDisplay.jsx +++ b/src/components/display/DictionaryDetails/DetailsSection/PhonologyDisplay.jsx @@ -129,7 +129,7 @@ export const PhonologyDisplay = ({ phonologyContent }) => { Exceptions:
diff --git a/src/components/display/DictionaryDetails/index.jsx b/src/components/display/DictionaryDetails/index.jsx index 947b0aa..8f47d87 100644 --- a/src/components/display/DictionaryDetails/index.jsx +++ b/src/components/display/DictionaryDetails/index.jsx @@ -23,7 +23,7 @@ export class DictionaryDetails extends Component { currentDisplay: DISPLAY.NONE, } - this._descriptionHTML = marked(sanitizeHtml(props.description)); + this._descriptionHTML = marked(sanitizeHtml(props.description, { allowedTags: [], allowedAttributes: [], })); } componentWillReceiveProps (nextProps) { @@ -31,7 +31,7 @@ export class DictionaryDetails extends Component { nextDescription = nextProps.description; if (currentDescription !== nextDescription) { - this._descriptionHTML = marked(sanitizeHtml(nextProps.description)); + this._descriptionHTML = marked(sanitizeHtml(nextProps.description, { allowedTags: [], allowedAttributes: [], })); } }