Changeset 1485
- Timestamp:
- Jul 21, 2006, 1:49:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/tools/create_listing_file.php
r1228 r1485 137 137 $value = str_replace(chr(0x00), ' ', $value); 138 138 139 return htmlentities($value);139 return $value; 140 140 } 141 141 … … 155 155 if ( preg_match('/(\d{4})(\d{2})(\d{2})/', $value, $matches)) 156 156 { 157 $iptc[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3]; 158 } 159 } 160 } 161 162 if (isset($iptc['keywords'])) 163 { 164 // official keywords separator is the comma 165 $iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']); 166 $iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']); 167 } 157 $value = $matches[1].'-'.$matches[2].'-'.$matches[3]; 158 } 159 } 160 if ($pwg_key == 'keywords') 161 { 162 // official keywords separator is the comma 163 $value = preg_replace('/[.;]/', ',', $value); 164 $value = preg_replace('/^,+|,+$/', '', $value); 165 } 166 $iptc[$pwg_key] = htmlentities($value); 167 } 168 168 169 $iptc['keywords'] = implode( 169 170 ',',
Note: See TracChangeset
for help on using the changeset viewer.