title: Insert a div + link + image inside an echo (Joomla)
body: <p>I'm having a little problem here and I would much appreciate your help.</p>
  
  <p>I'm trying to create a sort of menu which will be displayed after a user logs in in Joomla (the fact that is joomla doesn't really matter though).  I have two different outputs for two different users.  If the user is User A, s/he will see output A, if it's user B, s/he will see output B.</p>
  
  <p>I have already figured out how to do the "Look who's the user---give output" part.  And it's working perfectly.  The problem is the output itself.  I'm trying to echo a div which contains an image and a text, both as a link.  However, the only output I'm getting is the text, whith no format whatsoever.</p>
  
  <p>Here it's the code:</p>
  
  <pre><code>&lt;?php 
  
  $user =&amp; JFactory::getUser();
  if ($user-&gt;id == 291) {
  
   echo &lt;&lt;&lt;EOS
  
  &lt;div class="mitribu"&gt;&lt;a href="index.php?option=com_content&amp;amp;view=category&amp;amp;layout=blog&amp;amp;id=13"&gt;&lt;img class="mitribuimg" src="images/banners/books.png" alt="books"/&gt;Mi tribu&lt;/a&gt;&lt;/div&gt;
  
  EOS;
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>As you see this should render an image and the text Mi tribu, and that should be a link.  But the only thing I'm getting is Mi tribu in plain text.</p>
  
  <p>What Am I doing wrong here?</p>
  
  <p>Thank you very much in advance!</p>
  
  <p>Hernan.</p>
  
  <hr>
  
  <p>EDIT: I have found the answer.  It was the plugin used to render PHP inside articles and modules in Joomla, Sourcerer, which was stripping the code.  Just in case someone else has the same problem, here it's the solution:</p>
  
  <p>You must use {source 0} {/source} to add the code.  Adding the 0 tells the plugin to do not strip the HTML code.</p>