Hey...Ok, so the trim works half alright...it gets rid of the returns and new lines that make me get an error..but I also want it to get rid of the tabs...but it isnt (not sure if that is because they are in the middle of the string)
I have something that looks like this:
$data = trim($probe->getData());
$data = str_replace('\t',' ',$data);
$return = $return.$data.'\n';
$roots->push($probe);
$probe = $probe->getChild();
I tried adding the str_replace just to see if it would work (it didnt 😛)
I can make it work in javascript using (works on just a single line...doesnt work when i pass in 10 lines like I do in this case)
nodeData = nodeData.replace('\t',' ');
but I need it to happen inside a php while loop...so I cant use js...
in the end the string looks like this:
1.1 SECTION INCLUDES
1. Door release panel.
2. Transformers.
3. Magnets.
4. Switches.
5. Pushbuttons.
6. Power supplies.
7. Electrical supervision circuits.
8. Wiring.
9. Card readers.
10. Keypads.
11. Accessory software.
12. System accessories:
1. Readers.
2. Cards.
3. Sensing devices.
4. Power supplies.
any advice?
if you want to have a look
http://pdem.info/Standards/testTreeview.php
there it is...if you go there, expand part 1, and click one of the ckeckboxes you will see what I mean...
and if you expand part 1->1.1 section includes you will see what I WANT it to look like....