Ignore:
Timestamp:
May 6, 2013, 11:24:26 PM (11 years ago)
Author:
flop25
Message:

bug:2896
debugg the empty()
adding htmlspecialchars(strip_tags()) before the truncature in order to avoid blanks, if the description has html/ExtendedDescription tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r22505 r22518  
    584584  }
    585585
    586   if (!empty($comment))
    587   {
    588     $info['comment'] = trigger_event('render_element_description', $info['comment']);
     586  if (!empty($info['comment']))
     587  {
     588    $info['comment'] = htmlspecialchars(strip_tags(trigger_event('render_element_description', $info['comment'])));
    589589    $title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
    590590  }
Note: See TracChangeset for help on using the changeset viewer.