/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DataList.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DataList.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by jonen, Sat Feb 22 21:08:35 2003 UTC revision 1.6 by jonen, Sun Feb 23 23:39:44 2003 UTC
# Line 1073  class DataList extends BaseWidget { Line 1073  class DataList extends BaseWidget {
1073       * @return string the cleaned/filtered data       * @return string the cleaned/filtered data
1074       */       */
1075      function _filter_column_string($data) {      function _filter_column_string($data) {
1076          return htmlspecialchars(trim($data));          // WAS: return htmlspecialchars(trim($data));
1077      
1078            // NEW: require 'flib/Application/i18n/TextEncode.php'  
1079            //  this will do a 'htmlentities' RECURSIVE on each item  
1080            $encoder = new Data_Encode($data);  
1081            $encoder->toHTML();
1082            return $data;    
1083      }      }
1084    
1085    
# Line 1628  class DataList extends BaseWidget { Line 1634  class DataList extends BaseWidget {
1634          return $url;          return $url;
1635      }      }
1636    
     /**  
      * This does some magic filtering on the data  
      * that we display in a column.  This helps  
      * to prevent nast data that may have html  
      * tags in it.  
      *  
      * @param string - the column data u want to filter  
      * @return string the cleaned/filtered data  
      */  
     function filter_column_string($data) {  
         return htmlspecialchars(trim($data));  
     }  
   
   
1637    
1638      /**      /**
1639       * This function is used to make sure that the string we are       * This function is used to make sure that the string we are

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed