avoids error "non SGML character"
authorRaphael Marichez <falco@m4x.org>
Sun, 19 Dec 2004 02:21:03 +0000 (02:21 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:44 +0000 (23:26 +0200)
avoids error "non SGML character" when title of an event contains an '
(e.g. "Recherche de Familles d\92accueil pour étudiants (...)")

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-109

templates/login.tpl

index 2b903ee..9359b6a 100644 (file)
 
   <table class="bicol">
     <tr>
-      <th><a id="newsid{$ev.id}"></a>{$ev.titre|nl2br}</th>
+      <th>
+        <a id="newsid{$ev.id}"></a>
+        {tidy}
+          {$ev.titre|nl2br}
+        {/tidy}
+      </th>
     </tr>
     <tr class="{cycle values="impair,pair"}">
       <td class="half">
         {tidy}
-        {$ev.texte|smarty:nodefaults|nl2br}
+          {$ev.texte|smarty:nodefaults|nl2br}
         {/tidy}
         <br />
         <p class="smaller">Annonce proposée par