Ignore:
Timestamp:
May 9, 2010, 1:09:54 PM (11 years ago)
Author:
popeye
Message:

test exposés simplifions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/loi/templates/sectionSuccess.php

    r1182 r1185  
    5454      echo 'Section '.$nsec.' : '.$section['titre'];
    5555      if (isset($section['expose']) && $section['expose'] != "") {
    56         $expose = truncate_text(preg_replace('/<\/?p>/i', ' ', $section['expose']), 250);
     56        $expose = truncate_text(html_entity_decode(strip_tags($section['expose']), ENT_NOQUOTES, "UTF-8"), 250);
    5757        echo '</b><blockquote>'.$expose.'</blockquote></a>';
    5858      } else echo '</b></a>';
     
    9292  if ($a->nb_commentaires > 0 || isset($amendements[$atitre])) echo ')';
    9393  if (isset($a->expose) && $a->expose != "") {
    94     $tmpexpo = truncate_text(preg_replace('/<\/?p>/i', ' ', $a->expose), 250);
     94    $tmpexpo = truncate_text(html_entity_decode(strip_tags($a->expose), ENT_NOQUOTES, "UTF-8"), 250);
    9595    if ($expose == '' || !(truncate_text($expose, 200) === truncate_text($tmpexpo, 200))) {
    9696      $expose = $tmpexpo;
Note: See TracChangeset for help on using the changeset viewer.