Wordpress Plugin, get HTML post content

admin

Administrator
Staff member
I am building a wordpress plugin, that acts when the admin saves a new post.
I need to get the content of that post and i am retrieving
Code:
$_POST['content']
and
Code:
$_POST['post_content']
.<br>
The problem here is that i only get the text inside that content, i need the html.

This way, if i was expecting something like
Code:
&lt;p&gt;Lorem&lt;/p&gt;&lt;p&gt;ipsum&lt;/p&gt;&lt;p&gt;dolor&lt;/p&gt;
, I get
Code:
Lorem ipsum dolor
.

Can someone help me please?

Thanks