silverstripe/sapphire — pull request #674 by jakr (2012-07-26 07:19:53+00:00)
Title: FIX 7590: Image thumbnails broken in gridfield

Delay converting the object to a string and escaping its value until the end of getColumnContent. Call formatValue BEFORE castValue, so that formatValue can create raw HTML by casting to HTMLText afterwards.