title: How to I "uncloak" an email address in Joomla 3.1?
body: <p>I'm currently developing a Joomla module that will be a simple contact us form.<br>
  When the form errors out for some reason, I want to retain the data the user input into the various fields so they don't lose what they typed in.   </p>
  
  <p>I've been able to make it work for most fields, but email is stumping me.<br>
  The reason is Joomla seems to apply email cloaking using Javascript, and when I retrieve the post parameter instead of a plain email address like the user typed, Joomla returns the javascript and sticks that in the field instead.  </p>
  
  <p><strong>How do I get the raw email address without the added cloaking?</strong> </p>
  
  <p>Here is the code I'm using to retain the entered data in the event the form isn't submitted properly.</p>
  
  <pre><code>&lt;p&gt;
    &lt;label &gt;&lt;?php echo $email ?&gt;&lt;/label&gt;
    &lt;input type="email" name="email" id="email" 
           value="&lt;?php echo isset($_POST['email']) 
                   ? JFactory::getApplication()-&gt;input-&gt;get('email','','STRING') 
                   : "Enter Email Address" ?&gt;"/&gt;
  &lt;/p&gt;
  </code></pre>