Follow-up to [2700]: if the `render_unsafe_content` option is set to false, don't allow the direct rendering of any text content. This is to workaround the unfortunate fact that some browsers (IE and Safari) will sniff the actual content of a file to detect whether it contains HTML, and render the text as HTML if it does.