Changeset 26 for trunk/Import


Ignore:
Timestamp:
Dec 27, 2018, 3:47:30 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Improved information parsing from message text.
Location:
trunk/Import
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Import/AstraPraha.php

    r11 r26  
    2929      if ($MeetItem->Gender == 'Hledám partnerku') $MeetItem->Gender = Gender::Male;
    3030        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>')));
    3232      $MeetItem->Email = trim(GetTextBetween($Item, 'class="nowrap text-link">', '</a>'));
    3333      $MeetItem->Name = '';
  • trunk/Import/Csts.php

    r24 r26  
    3434      $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, '<td colspan="3">', '</td>'))));
    3535      // 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);
    3838      $MeetItem->Height = GetHeightFromText($MeetItem->Message);
    3939      $MeetItem->Weight = GetWeightFromText($MeetItem->Message);
Note: See TracChangeset for help on using the changeset viewer.