I have a description field with a CK editor enabled. And when I get the data from it as node->get('fieldname')->getString()
it outputs the content as below.
The contents that I have entered in the Ck editor
, basic_html
I can resolve this in the twig file by getting this as {{fieldname| raw}}
. But I need to get this in a php file. How do I get the value without that , basic html part?