| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | * @since 1.8.8 |
| 45 | 45 | */ |
| 46 | 46 | $give_receipt_args['donation_receipt']['donor'] = [ |
| 47 | 47 | 'name' => __( 'Donor', 'give' ), |
| 48 | - 'value' => $full_name, | |
| 48 | + 'value' => esc_html( give_strip_shortcodes_deep( $full_name ) ), | |
| 49 | 49 | 'display' => $give_receipt_args['donor'], |
| 50 | 50 | ]; |
| 51 | 51 | |
| 52 | 52 | /** |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | * @return bool show/hide company name in donation receipt page. |
| 60 | 60 | */ |
| 61 | 61 | $give_receipt_args['donation_receipt']['company_name'] = [ |
| 62 | 62 | 'name' => __( 'Company Name', 'give' ), |
| 63 | - 'value' => esc_attr( $company_name ), | |
| 63 | + 'value' => esc_html( give_strip_shortcodes_deep( $company_name ) ), | |
| 64 | 64 | // Do not show company field if empty |
| 65 | 65 | 'display' => empty( $company_name ) ? false : $give_receipt_args['company_name'], |
| 66 | 66 | ]; |
| 67 | 67 | |