Skip to content

Commit 223c329

Browse files
Merge pull request #1211 from Codeinwp/bugfix/1210
Fixed special characters rendering issue
2 parents ceb2365 + e372a12 commit 223c329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/Visualizer/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ private function _fetchSeriesFromEditableTable() {
429429
foreach ( $headers as $header ) {
430430
if ( ! empty( $types[ $header ] ) ) {
431431
$this->_series[] = array(
432-
'label' => esc_html( wp_strip_all_tags( $header ) ),
432+
'label' => sanitize_text_field( wp_strip_all_tags( $header ) ),
433433
'type' => $types[ $header ],
434434
);
435435
}

classes/Visualizer/Source/Csv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function _fetchSeries( &$handle ) {
9797
$labels[ $i ] = $this->toUTF8( $labels[ $i ] );
9898

9999
$this->_series[] = array(
100-
'label' => esc_html( wp_strip_all_tags( $labels[ $i ] ) ),
100+
'label' => sanitize_text_field( wp_strip_all_tags( $labels[ $i ] ) ),
101101
'type' => isset( $types[ $i ] ) ? $types[ $i ] : $default_type,
102102
);
103103
}

0 commit comments

Comments
 (0)