In node type = "article", I have field of type body.
In my .module file, I want to get its raw source code with actual html classes too. But all I get is:
$body = $node->get('field_all_body')->value; print_r($body);die;
I want the value should contain div class too. How it can be achieved?
My actual requirement is:
I want to populate one field value on behalf of the class exists in
Foe example, I select some text in text-editor, and mark it bold, then that particular text should get cloned in another field too.