I got it working this morning. I needed to add .value to the end of the code I passed to the asHtml helper function
.value
asHtml