Yes the content type was set correctly. I have the 8.2 version of layer 7 and it turns out I have to define the content variable as description.result so that it would apply the proper escape character.
I figured it out now. Thank you all for the suggestions.