title: sanitizing html user inputs in php codeigniter
body: <p>I have a user form where users can post comment on articles. i need to allow strong, em and span tags for user inputs. I know this can be achieved through strip_tags function but i also want the other tags not to stripped but be changed using say htmlspecialchars function so that  tags can be seen in the page.
  I hope it made sense.</p>