Publish check if the edited content has HTML “div”

I think going back to the source is the best way to resolve that issue,This is a timing / synchronization problem as i can see, so when i use sql query to read the updated value in the database i finally get things working correctly,
here is what i have added to get the UPDATED content :

$querystr = "SELECT $wpdb->posts.post_content FROM $wpdb->posts WHERE $wpdb->posts.ID = $post->ID";
$content = $wpdb->get_row($querystr, OBJECT);
$content = $content->post_content;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)