Skip to content

Commit

Permalink
fix(EmailNotifications): use html_entity_decode for alert title
Browse files Browse the repository at this point in the history
  • Loading branch information
harunbleech committed Jul 8, 2024
1 parent 27eb119 commit 4a2f289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/features/class-email-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function send_email( $differences, $post_id, $alert_id ) {

$message = esc_html_x( 'Howdy,', 'notification email', 'visual-regression-tests' ) . "\n\n" .
esc_html_x( 'New visual differences have been detected on the following page:', 'notification email', 'visual-regression-tests' ) . "\n\n" .
wp_specialchars_decode( get_the_title( $post_id ) ) . "\n\n" .
html_entity_decode( wp_specialchars_decode( get_the_title( $post_id ) ) ) . "\n\n" .
esc_html_x( 'View the alert:', 'notification email', 'visual-regression-tests' ) . "\n" .
esc_url( $admin_url ) . 'admin.php?page=vrts-alerts&action=edit&alert_id=' . $alert_id . "\n\n" .
sprintf(
Expand Down

0 comments on commit 4a2f289

Please sign in to comment.