title: Joomla | How to filter input string containing html tags
body: <p>I have a joomla component and trying to filter HTML content from the users input.</p>
  
  <pre><code>$input  = $app-&gt;input-&gt;post-&gt;getRaw('question');
  </code></pre>
  
  <p>This will getting me the RAW html.</p>
  
  <p>How can I check (The joomla way or custom php function) is it safe before saving into my database?</p>
  
  <p>Thanks!</p>