I created a page with php code and it’s working pretty good, problem is either wordpress or php is trying to be helpful by adding “
” when I don’t want it to. What is causing that? Here’s an example (hopefully it displays right).
$image_block .= “<img src=\”/images/$gallery/thumbs/$image \” alt=\”$comment\”/> “;
The problem is the break at the end of the alt tag. I added a space to the beginning of it so it would display.
- The topic ‘How do I prevent “<br />” from being added?’ is closed to new replies.