Changeset 182
- Timestamp:
- 06/18/08 20:21:02 (7 months ago)
- Location:
- ez_publish/myutils/trunk
- Files:
-
- 2 modified
-
classes/myutilsfunction.php (modified) (1 diff)
-
cronjobs/planet.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ez_publish/myutils/trunk/classes/myutilsfunction.php
r181 r182 52 52 } 53 53 $str = $tidy; 54 } 55 56 57 58 /** 59 * Permet de nettoyer le champ "description" d'un flux RSS 60 * 61 * @param string $str 62 */ 63 static function cleanRSSDescription( &$str ) { 64 65 $str = preg_replace( '#<img src="/(.+?)" alt="(.?)" />#is', '', $str ); 54 66 } 55 67 -
ez_publish/myutils/trunk/cronjobs/planet.php
r181 r182 559 559 { 560 560 myUtilsFunctions::cleanTidy( $attributeValue ); 561 562 /* Liens relatifs dans un flux RSS ! */ 563 $attributeValue = preg_replace( '#<img src="/(.+?)" alt="(.?)" />#is', '', $attributeValue ); 561 myUtilsFunctions::cleanRSSDescription( $attributeValue ); 564 562 565 563 /* Et hop ! Dans eZ */
