Changeset 26855
- Timestamp:
- Jan 18, 2014, 2:06:21 PM (11 years ago)
- Location:
- extensions/typetags
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/typetags/include/events_public.inc.php
r26665 r26855 186 186 } 187 187 } 188 189 function typetags_escape() 190 { 191 global $template; 192 $template->set_prefilter('header', 'typetags_escape_prefilter'); 193 } 194 function 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 39 39 add_event_handler('loc_end_tags', 'typetags_tags'); 40 40 41 // escape keywords meta 42 add_event_handler('loc_begin_page_header', 'typetags_escape'); 43 41 44 42 45 if (defined('IN_ADMIN'))
Note: See TracChangeset
for help on using the changeset viewer.