This method should return either HTML or not plain text, and should be documented as such. Currently, it appears to return HTML sometimes and plain text sometimes, which is unsafe.