You are here

function geshifilter_decode_entities in GeSHi Filter for syntax highlighting 7

3 calls to geshifilter_decode_entities()
_geshifilter_general_highlight_tags_settings in ./geshifilter.admin.inc
Helper function for some settings form fields usable as general and specific settings.
_geshifilter_prepare_callback in ./geshifilter.pages.inc
_geshifilter_prepare callback for preparing input text. Replaces the code tags brackets with geshifilter specific ones to prevent possible messing up by other filters, e.g. '[python]foo[/python]' to…
_geshifilter_prepare_php_callback in ./geshifilter.pages.inc
_geshifilter_prepare callback for < ?php ... ? > blocks.
1 string reference to 'geshifilter_decode_entities'
GeshiFilterTest::testSpecialChars in ./geshifilter.test
Issue https://www.drupal.org/node/2047021.

File

./geshifilter.inc, line 121
General GeSHi filter helper functions.

Code

function geshifilter_decode_entities($format = NULL) {
  if (!geshifilter_use_format_specific_options() || $format === NULL) {
    return variable_get('geshifilter_decode_entities', 0);
  }
  return variable_get("geshifilter_decode_entities_{$format}", geshifilter_decode_entities());
}