title: Echo function jumping outside of Div
body: <p>I have create a function for gettext translations, which is in a header file:</p>
  
  <pre><code>function _ex($text){
    echo gettext($text);
  }
  </code></pre>
  
  <p>when I use the function _ex(""); it translates whatever text is in that function, which works great, though when I use it inside another function whith a div inside like so:</p>
  
  <pre><code>    echo '
            &lt;div class="row row-centered"&gt;
            &lt;div class="col-md-3"&gt;&lt;/div&gt;
            &lt;div class="col-md-5"&gt;
            &lt;div class="alert alert-danger"&gt;
            &lt;strong&gt;' . _ex("Oh snap!"). '&lt;/strong&gt; You are banned. &lt;b&gt;&lt;u&gt;Do not&lt;/u&gt;&lt;/b&gt; register another account
            &lt;br&gt;Reason you are banned: &lt;b&gt;&lt;u&gt;'.$banneduser-&gt;reason.'&lt;/u&gt;&lt;/b&gt;
            &lt;/div&gt;
            &lt;/div&gt;
            &lt;/div&gt;';
  </code></pre>
  
  <p>It for some reason jumps outside of the div col-md-5 and ends up displaying like so:</p>
  
  <p><img src="https://i.stack.imgur.com/4Gnyx.png" alt="div"></p>
  
  <p>It is working in some other files, just not this. I have ' . _ex("") . ' so it works inside of the echo. Is there a reason behind this, does the opening quotes cancel the div? Is it because it's being echoed twice? What is a way to stop this without having to rewrite all of my code? End the first echo, then use the function and reopen another echo? Is there a function for this, to check if it's already been echoed if it has just return it rather than echo?</p>