xsltsharepointsharepoint-2013

SharePoint 2013: adding disable-output-escaping to a list


I can see that disable-output-escaping is a tag you can add to a page's XSL to properly render HTML entered as a value in a list item. What I can't figure out is HOW to add that tag. I've found a lot of documentation for SharePoint 2010, but can't figure out how to do it in 2013 with SharePoint Designer.

The reason why I'm trying to use this is so that I can use a calculated field to display a picture based on the value of a yes/no field in the same list.

This is the list: [link removed, site no longer available]

As seen in the list, my calculated field works correctly to output HTML based on the yes/no value of the "Cats" column, but it's escaping the text instead of rendering it.

Caveat: this is my first time doing anything outside of what InfoPath and the SharePoint web interface can do, so if I'm doing this completely wrong, I'm open to recommendations on best practices in this scenario.


Solution

  • no need for xslt. You can (unsupported) trick SharePoint to output a Calculated Column as HTML by setting the datatype to Number