Reputation: 269
Im trying to do this:
echo '<img src="'. $img_file .'" ' . $imgDem . ' /><br />';
but it comes out like this:
<img src="/images/content/user/3/127.jpg" height="451" width="804"><br>
how can i get it to come out like:
<img src="/images/content/user/3/127.jpg" height="451" width="804" /><br />
Upvotes: 0
Views: 79
Reputation: 7583
Actually, when you view the page source. It's displayed with the \>
.
Are you viewing this from firebug or inspect element from chrome?
Upvotes: 0
Reputation: 360702
PHP won't strip characters from the output, unless you're using some kind of output filter. Most likely whatever you're viewing the HTML in is doing the stripping - Firebug will, for one. Try a plain 'view source' view instead.
Upvotes: 7