Wrapping the innertext after getting it out of a xml feed is not working for me. I was thinking something like this might work:
foreach($html->find('td',1) as $e) {
echo '<div style="width:100%; word-wrap:break-word;">' . $e->innertext . '</div>';
}
but it’s not wrapping. I am using Chrome to see the results. I have also tried to make the width smaller with no avail. It ends up cutting off the text and giving me a … at the end. What am i missing?
This is something you need to change in the jquery mobile css: .ui-li-desc { white-space: normal; }