Changeset 26 for trunk/Import
- Timestamp:
- Dec 27, 2018, 3:47:30 PM (6 years ago)
- Location:
- trunk/Import
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Import/AstraPraha.php
r11 r26 29 29 if ($MeetItem->Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male; 30 30 else $MeetItem->Gender = Gender::Female; 31 $MeetItem->Message = trim( GetTextBetween($Item, '<p class=\'last-element\'>', '</p>'));31 $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p class=\'last-element\'>', '</p>'))); 32 32 $MeetItem->Email = trim(GetTextBetween($Item, 'class="nowrap text-link">', '</a>')); 33 33 $MeetItem->Name = ''; -
trunk/Import/Csts.php
r24 r26 34 34 $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, '<td colspan="3">', '</td>')))); 35 35 // Replace unicode non-breakable space by normal space 36 $MeetItem->Message = str_replace("\xc2\xa0", "\x20", $MeetItem->Message); 37 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 36 $MeetItem->Message = str_replace("\xc2\xa0", "\x20", $MeetItem->Message); 37 $MeetItem->Age = GetAgeFromText($MeetItem->Message); 38 38 $MeetItem->Height = GetHeightFromText($MeetItem->Message); 39 39 $MeetItem->Weight = GetWeightFromText($MeetItem->Message);
Note:
See TracChangeset
for help on using the changeset viewer.