Format animal name with htmlspecialchars(entity_label()).

This commit is contained in:
paul121 2020-07-31 14:13:51 -07:00 committed by Michael Stenta
parent fa371df938
commit 649d3bd847
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function farm_livestock_weight_individual_report(FarmAsset $farm_asset) {
// Create a Weight Report Graph
$graph = array(
'name' => $farm_asset->name . t(' Weight Report'),
'name' => htmlspecialchars(entity_label('farm_asset', $farm_asset)) . t(' Weight Report'),
'id' => 'farm-report-weight-graph',
'data' => $weights,
);