You are here

function _rrssb_decode in Ridiculously Responsive Social Sharing Buttons 8.2

Helper function to undo the encoding that is unavoidable in token replace.

1 string reference to '_rrssb_decode'
rrssb_get_buttons in ./rrssb.module
Returns a Drupal render array for the buttons.

File

./rrssb.module, line 77

Code

function _rrssb_decode(&$replacements, $data, $options) {
  $replacements = array_map(function ($s) {
    return htmlspecialchars_decode($s, ENT_QUOTES);
  }, $replacements);
}