How to use the @dpc-sdp/ripple-global/utils/helpers.js.decodeSpecialCharacters function in @dpc-sdp/ripple-global

To help you get started, we’ve selected a few @dpc-sdp/ripple-global examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dpc-sdp / ripple / packages / components / Molecules / DocumentLink / DocumentLink.vue View on Github external
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 () {
github dpc-sdp / ripple / packages / components / Atoms / Link / TextLink.vue View on Github external
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 () {
github dpc-sdp / ripple / packages / ripple-nuxt-tide / lib / core / mapping-filters.js View on Github external
formattedTextDecode: (formattedText) => {
    const decodeSpecialCharacters = require('@dpc-sdp/ripple-global/utils/helpers.js').decodeSpecialCharacters
    return decodeSpecialCharacters(formattedText.processed)
  }
}