We should not be escaping when we build a variable, but when we output it at the end. We call this 'escaping late.'
This commit is contained in:
@@ -252,11 +252,11 @@ class SP_Admin_Settings {
|
||||
|
||||
if ( $tip && in_array( $value['type'], array( 'checkbox' ) ) ) {
|
||||
|
||||
$tip = '<p class="description">' . esc_attr( $tip ) . '</p>';
|
||||
$tip = '<p class="description">' . $tip . '</p>';
|
||||
|
||||
} elseif ( $tip ) {
|
||||
|
||||
$tip = '<i class="dashicons dashicons-editor-help sp-desc-tip" title="' . esc_attr( $tip ) . '" />';
|
||||
$tip = '<i class="dashicons dashicons-editor-help sp-desc-tip" title="' . $tip . '" />';
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user