Invalid HTML - I dont get it??? :-(
Posted: Mon Dec 27, 2004 7:03 am
Hi,
What's this weirdness with putting and " = " then a new line in a HTML document when it should all be on the same line.
Example (just a cut and paste random section):
I tried
But I get the same output (also tried \n).
I got the correct layout with
but thants no good since all attributes and image sources etc are broken.
Any clues or decoding functions?
Thanks
What's this weirdness with putting and " = " then a new line in a HTML document when it should all be on the same line.
Example (just a cut and paste random section):
I'm making an email app and some emails have the body encoded like this so the email doesn't display correctly.<body marginwidth=3D"4" marginheight=3D"4" topmargin=3D"4" leftmargin=3D"4"=
bgcolor=3D"white" vlink=3D"#0000ff" link=3D"#0000ff">
<table cellspacing=3D"0" cellpadding=3D"0" width=3D"600" border=3D"0">
<tr>
<td colspan=3D"2" height=3D"2" bgcolor=3D"#D6DCFE"><img src=3D"http://pics.=
ebaystatic.com/aw/pics/x.gif" width=3D"1" height=3D"2"></td>
</tr>
<tr valign=3D"top">
<td width=3D"600" bgcolor=3D"#D6DCFE">
<font size=3D"3" face=3D"Arial, Helvetica, sans-serif=09=09=09"><img src=3D=
"http://pics.ebaystatic.com/aw/pics/x.gif" width=3D"2" height=3D"1" alt=3D"=
" title=3D""><strong>Question about your item</strong></font>
I tried
Code: Select all
str_replace("=\r\n","",$email_body)I got the correct layout with
Code: Select all
str_replace("=","",$email_body)Any clues or decoding functions?
Thanks