I was trying to get a value in a views tpl. The value was a predefined list of text values. Views gave the key value, but of course i needed the string value.

content.module contains the function content_format() which does the job for you. More information about this function: http://api.audean.com/api/function/content_format/API+Reference