This is due to the output of escaper in symfony.
You can fix this by calling getRawValue () according to the data:
$obj->getDesc()->getRawValue();
Keep in mind that if you do this, you need to make sure that html / javascript / everything else has been entered safely for output to the page. If this comes from the backend, you're probably all right. But if it comes from end users, you have to make sure that you make it safe (block XSS attacks, prevent html that breaks the layout, etc.). This is a big topic!
source share