Skip to content

Commit

Permalink
v 2.7.7 - An extra HTML escaped (esc_html)
Browse files Browse the repository at this point in the history
  • Loading branch information
GemmaNicolas committed Apr 4, 2024
1 parent 28e22b5 commit 2e8c25c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/class-job-single-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public static function get_job_fields( $post_id, $position = 'sort-left' ){
$icon = Job_Postings_Helper::getRawSvg( 'clock.svg' );
}

$out .= $icon.esc_html($value);
$out .= $icon.$value;
break;


Expand Down Expand Up @@ -562,7 +562,7 @@ public static function get_job_fields( $post_id, $position = 'sort-left' ){
//$value = htmlspecialchars($value);

//$out .= apply_filters('the_content', $value);
$tinymce_content = wpautop(esc_html($value));
$tinymce_content = wpautop($value);

if( class_exists('WP_Embed') ) {
$wpembed = new WP_Embed();
Expand Down Expand Up @@ -643,7 +643,7 @@ public static function get_job_fields( $post_id, $position = 'sort-left' ){
$value = isset( $values[$key] ) ? esc_attr( $values[$key][0] ) : '';
$value = htmlspecialchars($value);

$out .= esc_html($value);
$out .= $value;
break;
}
}
Expand Down

0 comments on commit 2e8c25c

Please sign in to comment.