Try copying and pasting that code directly into a rich text box on the screen rather than in a template column.
eg.