The  solution does not work, so moving to a template variable {{ html_attr }}. Also adding the {{ body_attr }} template variable.