I have a code in which you have to enter an html code and it extracts data from it etc...
now the deal is that all html tags got to be gone except the < td > and < tr > because I'm using them to locate the data I need to extract. Now when you get the html code through internet explorer and you enter it (in any browser) on that page, it works perfect. When you get it through firefox then suddenly it's all seriously messed up, no matter in which browser you enter the code. Now after a small modifications to check what was the problem, I found out that the code received through firefox loses all the tags, even the td and tr even though I said not to. The only diffrence between the codes are some extra newlines, if I remove those manually it works.
Very weird, anyway here a little extraction from the code:
$html = substr($_POST['html'],strpos($_POST['html'],'killfiles') + 40);
$html = strip_tags($html,'<td><tr>');
$html = str_replace(array("\r", "\n"), "+lul+", $html);
the first line puts the string that was posted into a new one, but only from 31 chars after the first time killfiles appears till the end.
the second line is supposed to strip all the tags except td and tr.
the thirs line replaces all kinds of newlines and carried feeds to +lul+, so I can easy trace down where the newlines used to be.
from this point it's all extracting data through recognation points in the code, which usually are the td and tr tags, but with them gone it's all messed up.
I hope someine can see what the hell I'm doing wrong ^^