';
foreach ($incident_photos as $photo)
{
- echo '
';
+ echo '
';
};
echo '
diff --git a/themes/default/views/reports/list.php b/themes/default/views/reports/list.php index abdd731..2ee0f25 100644 --- a/themes/default/views/reports/list.php +++ b/themes/default/views/reports/list.php @@ -44,14 +44,14 @@ foreach ($incidents as $incident) { $incident_id = $incident->incident_id; - $incident_title = strip_tags($incident->incident_title); - $incident_description = strip_tags($incident->incident_description); + $incident_title = html::strip_tags($incident->incident_title); + $incident_description = html::strip_tags($incident->incident_description); $incident_url = Incident_Model::get_url($incident_id); //$incident_category = $incident->incident_category; // Trim to 150 characters without cutting words // XXX: Perhaps delcare 150 as constant - $incident_description = text::limit_chars(strip_tags($incident_description), 140, "...", true); + $incident_description = text::limit_chars(html::strip_tags($incident_description), 140, "...", true); $incident_date = date('H:i M d, Y', strtotime($incident->incident_date)); //$incident_time = date('H:i', strtotime($incident->incident_date)); $location_id = $incident->location_id; @@ -88,7 +88,7 @@