Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

yuryuri4

Newbie
  
  • Posts

    25
  • Joined

  • Last visited

Information

  • Gender
    Мужчина
  • City:
    IF

yuryuri4's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

3

Reputation

  1. Параметр парсинга <div class="span6">,</div> Код: <div class="span6"> Дополнител <br> Количество экранов: 3 в комплекте <br> Размер основного экрана: 67.1*56.0*1.2мм. <br> Размер <br> Производител <br> Гарантия: 12 месяцев <br> <br> <br> <img src="http://www.e................DALL_1.jpg"> <br> <img src="http://www........DALL_2.jpg"> </div>
  2. Парсится только текст описания. Вставил туда: public function ParsDescription($ht, $key, $point, $place) { $text = ''; if (!empty($key) and strlen($ht) > 500) { $key = str_replace('"', '"',$key); $key = str_replace('<', '<',$key); $key = str_replace('>', '>',$key); $key = str_replace('&', '&',$key); $k = explode(",", $key); if (empty($k[0]) or empty($k[1])) { $err = " Product description keyword error \n"; $this->adderr($err); return $text; } $text = $this->Parsing($ht, $k, $point, $place); $text = str_replace('Описание', '', $text); $text = str_replace('Description', '', $text); $text = preg_replace('/<p.*?>/','<p>',$text); $text = preg_replace('/<P.*?>/','<P>',$text); $text = str_replace('<h2>', '<br><strong>', $text); $text = str_replace('</h2>', '</strong><br><br>', $text); $text = str_replace('<h3>', '<br><br><strong>', $text); $text = str_replace('</div>', '</div><br>', $text); $text = str_replace('</h3>', '</strong><br><br>', $text); $text = strip_tags($text, '<p><em><i><br><li><ul><tbody><table><img><tr><td><i><b><strong>'); $text = str_replace('<p></p>', '', $text); $text = str_replace('<strong></strong>', '', $text); $text = str_replace('&', '&',$text); $text = str_replace(' ', ' ',$text); $posa = strrpos($text, "<!--"); if ($posa) $text = substr($text, 0, $posa);
  3. вот пример кода <div class="span6"> Дополнител <br> Количество экранов: 3 в комплекте <br> Размер основного экрана: 67.1*56.0*1.2мм. <br> Размер <br> Производител <br> Гарантия: 12 месяцев <br> <br> <br> <img src="http://www.e...........................DALL_1.jpg"> <br> <img src="http://www........DALL_2.jpg"> </div>
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.