I'm sure this shoudl be fairly straight forward. I think i'm looking in the wrong place.

When I try to print the report of a case (civicrm/case/report/print?) or undertake an activity audit of a case, any text that has been entered usinjg the WYSIWYG editor is displayed as raw text. So any paragraphs are enclosed within

brackets etc.

Practically, this prevents these functions being used as the printed reports are nearly illegible (due to no line breaks and lots of angle brackets everywhere).

Hope this is clear and someone's got a quick solution.

I'm thinking i'll need to recreate these functions as a complete drupal view of the case, but would appreciate any other suggestions / approaches

  • It seems ok on the public demo. What version and platform are you using? Maybe in an older version there is some double-html escaping.
    – Demerit
    Dec 3, 2015 at 18:33
  • I've replicated it on the public demo. link to example print case on test site
    – Bruce
    Dec 4, 2015 at 10:27

1 Answer 1


I see - a custom field, not the main details field.

A couple things I think. There is a security issue with not escaping the fields, so in that sense it is being correct to escape the brackets etc, but better would be some type of sanitizing that leaves formatting but removes malicious parts. I'm not sure if this is the job of the wysiwyg editor itself or the civi code that handles the data.

  • I think i'll stick with some drupal views and Jasper Reports for the time being. Sounds like it's not as straight forward as i thought. Would this be the same reason why it also happens with the activity audit?
    – Bruce
    Dec 4, 2015 at 22:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.