title: HTML output from PHP function
body: <p>I have a function whos purpose is to return some HTML ($offer_html) to display on my page. However, I´m seeing some strange things.</p>
  
  <p>Below you see a div is added first to $offer_html (DIV is closing at the end). </p>
  
  <pre><code>$offer_html = '&lt;div class="box middle offer alignleft"&gt;';
  $offer_html .= '&lt;p class="detail alignleft"&gt;' . $volum . '&lt;/p&gt;';
  $offer_html .= '&lt;p class="detail alignleft"&gt;' . $produsent . '&lt;/p&gt;';
  $offer_html .= wpfp_link();
  $offer_html .= '&lt;/div';
  
  return $offer_html;
  </code></pre>
  
  <p>My problem is with the function wpfp_link(). The function returns HTML, but this HTML ends up totally misplaced. When the page renders, the HTML looks like this:</p>
  
  <pre><code>&lt;img class="wpfp-img" title="Favorite" alt="Favorite" src="http://localhost:8888/wordpress/wp-content/plugins/wp-favorite-posts/img/remove.png"&gt;
  &lt;div class="box middle offer alignleft"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you see, the HTML returned by the wpfp_link() ends up outside the DIV which I want it to be inside. </p>
  
  <p>Does anyone know why this happens?</p>