gitpajo / nfwjob

New fine working job
2 stars 1 forks source link

Trim popis #13

Closed myjavarama4 closed 9 years ago

myjavarama4 commented 9 years ago

Nefunguje

$produkt['popis'] = trim($popis);

gitpajo commented 9 years ago

jeste pred trim $popis = str_replace(html_entity_decode(' '), ' ', $popis);

myjavarama4 commented 9 years ago

private static function getPopis($obsah_stranky, $produkt) { $popis = $obsah_stranky->find('div[id=popis-produktu]', 0)->plaintext; $popis = str_replace(html_entity_decode(' '), ' ', $popis); $produkt['popis'] = trim($popis); return $produkt; }

Nefunguje