Please follow Questions Guideline #11 and properly format code and configuration blocks.
Don’t nest templates, just use the variable directly.
{{ DCImage | replace('text', '') }}
However, since the value of DCImage
appears to be a json string, a better option would be:
{{ (DCImage|from_json).text }}