| @@ -739,9 +739,9 @@ | ||
| 739 | 739 | * Gets the chart content after common manipulations. |
| 740 | 740 | */ |
| 741 | 741 | public static function get_chart_data( $chart, $type, $run_filter = true ) { |
| 742 | 742 | // change HTML entities |
| 743 | - $data = unserialize( html_entity_decode( $chart->post_content ) ); | |
| 743 | + $data = unserialize( html_entity_decode( htmlentities( $chart->post_content ) ) ); | |
| 744 | 744 | $altered = array(); |
| 745 | 745 | foreach ( $data as $index => $array ) { |
| 746 | 746 | if ( ! is_array( $index ) && is_array( $array ) ) { |
| 747 | 747 | foreach ( $array as &$datum ) { |