Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
nameDecoded: function () {
// TODO: This is a temporary fix.
// In Markup component, We can't avoid taking HTML encoded link text from CMS and feeding them into the text icon.
// We may just change all link text to HTML to solve this issue eventally.
return decodeSpecialCharacters(this.name)
},
icon () {
textDecoded: function () {
// TODO: This is a temporary fix.
// In Markup component, We can't avoid taking HTML encoded link text(especially for `"`) from CMS and feeding them into the text icon.
// We may just change all link text to HTML to solve this issue eventally.
return decodeSpecialCharacters(this.text)
},
iconSymbolFinal () {
formattedTextDecode: (formattedText) => {
const decodeSpecialCharacters = require('@dpc-sdp/ripple-global/utils/helpers.js').decodeSpecialCharacters
return decodeSpecialCharacters(formattedText.processed)
}
}