Fixes #7635 appointment comments double escaped (#7638)master
commitf9e3158455f3f755b4bfabd724a67380d53e3d16
authorStephen Nielson <snielson@discoverandchange.com>
Sun, 22 Sep 2024 02:02:50 +0000 (21 22:02 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 02:02:50 +0000 (21 22:02 -0400)
tree576e0d8d784fefab55b72076a94cdd557851b8ee
parent4d8d535ac7c65991b2732d99aa601fa6ea5f77ea
Fixes #7635 appointment comments double escaped (#7638)

* Fixes #7635 appointment comments double escaped

The day, month, and week appointments are showing html entities for
things like apostrophes, quotes, ampersands, etc because the data is
being double escaped.  We need to make sure we only do a single version
escape on the calendar.

The calendar uses the pcVarPrepHTMLDisplay function to escape this and
other fields which then get double escaped when passed through OpenEMR's
attr function.  We fix this issue by the removing the attr and relying
on the pcVarPrepHTMLDisplay.  This makes it so if anyone is using the
PostCalendar/pnuserapi.php to grab events it will still work properly.

Fixes #7635

* Fix escaping on patient showImage

day/month/week escaping issue fix.
interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html
interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month/ajax_template.html
interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/ajax_template.html