Changeset 17820


Ignore:
Timestamp:
Sep 8, 2012, 2:33:58 PM (8 years ago)
Author:
flop25
Message:

strip_tags when truncate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flop_mauve/current/themeconf.inc.php

    r17795 r17820  
    3131{
    3232  $search = 'NAME}</a>';
    33   $replacement = 'NAME|truncate:38:" [...]"}</a>';
     33  $replacement = 'NAME|truncate:38:" [...]"|strip_tags}</a>';
    3434  $content=str_replace($search, $replacement, $content);
    3535  $search = 'DESCRIPTION}</p>';
    36   $replacement = 'DESCRIPTION|truncate:130:" [...]"}</p>';
     36  $replacement = 'DESCRIPTION|truncate:120:" [...]"|strip_tags}</p>';
    3737  return str_replace($search, $replacement, $content);
    3838}
Note: See TracChangeset for help on using the changeset viewer.