Changeset 26855


Ignore:
Timestamp:
Jan 18, 2014, 2:06:21 PM (11 years ago)
Author:
mistic100
Message:

add strip_tags in meta keywords

Location:
extensions/typetags
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/typetags/include/events_public.inc.php

    r26665 r26855  
    186186  }
    187187}
     188
     189function typetags_escape()
     190{
     191  global $template;
     192  $template->set_prefilter('header', 'typetags_escape_prefilter');
     193}
     194function typetags_escape_prefilter($content)
     195{
     196  $search = '{$tag.name}';
     197  $replace = '{$tag.name|strip_tags}';
     198  return str_replace($search, $replace, $content);
     199}
  • extensions/typetags/main.inc.php

    r26670 r26855  
    3939add_event_handler('loc_end_tags', 'typetags_tags');
    4040
     41// escape keywords meta
     42add_event_handler('loc_begin_page_header', 'typetags_escape');
     43
    4144
    4245if (defined('IN_ADMIN'))
Note: See TracChangeset for help on using the changeset viewer.