Skip to content

Commit

Permalink
Update class-m-chart-parse.php
Browse files Browse the repository at this point in the history
  • Loading branch information
raipatti authored Jun 5, 2024
1 parent e25149f commit 4916801
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/class-m-chart-parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,21 @@ public function parse_suffix_prefix( $data_point ) {
* @return string the label string cleaned of any problem content
*/
public function clean_labels( $label ) {
$label = esc_html( $label );

$find = array(
' '
' ',
'"',
);

$replace = array(
' '
' ',
'"',
);

return trim( str_replace( $find, $replace, $label ) );
$label = trim( str_replace( $find, $replace, $label ) );

return $label;
}

/**
Expand Down Expand Up @@ -330,4 +336,4 @@ public function normalize_data_array( $data_array ) {

return $data_array;
}
}
}

0 comments on commit 4916801

Please sign in to comment.