Skip to content
Snippets Groups Projects
Commit 38b120ee authored by Nathan Haug's avatar Nathan Haug
Browse files

Issue #2167563: HTML encodings (e.g. ' and &) showing up in legend.

parent 7ce67cd0
No related branches found
Tags 7.x-2.0-rc1
No related merge requests found
......@@ -170,7 +170,8 @@ class charts_plugin_style_chart extends views_plugin_style {
foreach ($renders as $row_number => $row) {
$data_row = array();
if ($label_field_key) {
$data_row[] = $renders[$row_number][$label_field_key];
// Labels need to be decoded, as the charting library will re-encode.
$data_row[] = htmlspecialchars_decode($renders[$row_number][$label_field_key], ENT_QUOTES);
}
// Convert empty strings to NULL.
if ($renders[$row_number][$data_field_key] === '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment