Problems with cfdocument and getSafeHTML()
I have a site where users can fill out reports. The admins have the ability to control the questions. So, I'm using GetSafeHTML() when I show the questions because there are some questions that have bulletted lists and EncodeForHTML when displaying the answers. That all works fine when displaying the questions and answers to the screen. However, the user also has the option to save the report as a pdf. I'm using cfdocument to create the pdf. My problem is that anything with GetSafeHTML is showing the html (ie <ul><li>, etc.) for the list instead of just displaying the bulleted list.
Anyone else having similar problems? Any thoughts on work arounds? I am thinking of using IsSafeHTML and only displaying if it is safe and no longer using GetSafeHTML to display. Anyone deal with this differently?
