htmlentities not working correctly with php [duplicate]

I am working in php,I am trying to save editor data into database
but data is not not saving as i expected,For example after submit form my post data is

Array
(
    [title] => Lorem Ipsum dummy text
    [description] => <p><strong>Lorem Ipsum</strong> dummy text</p>
)

And here is my query

$title= // any title; 
$description = $description_front=htmlentities($_POST['description']);

$sql = "INSERT INTO sl_blogs(title,description) VALUES ('$title','$description')"; 
$this->db->query($sql);

After print query in web page i am getting following query

(INSERT INTO sl_blogs(title,description) VALUES ('Lorem Ipsum dummy text','<p><strong>Lorem Ipsum</strong> dummy text</p>') )

which is looking fine But my data in database saving like

&lt;p&gt;&lt;strong&gt;Lorem Ipsum&lt;/strong&gt; dummy text&lt;/p&gt;

i want data should save like

<p><strong>Hello</strong> <em>worldddd</em></p>