| @@ -125,8 +125,9 @@ | ||
| 125 | 125 | ]; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | + * @since 4.16.4 Escaped the value attribute output. | |
| 129 | 130 | * @since 3.9.0 |
| 130 | 131 | */ |
| 131 | 132 | public static function getHtmlInput(string $value, string $id, string $class = '', string $name = ''): string |
| 132 | 133 | { |
| @@ -147,9 +148,9 @@ | ||
| 147 | 148 | <input id="<?php |
| 148 | 149 | echo $id . '--intl_tel_input'; ?>" class="<?php |
| 149 | 150 | echo $class; ?>" name="<?php |
| 150 | 151 | echo $name; ?>" value="<?php |
| 151 | - echo $value; ?>" type='text'> | |
| 152 | + echo esc_attr($value); ?>" type='text'> | |
| 152 | 153 | |
| 153 | 154 | <span id="<?php |
| 154 | 155 | echo $id . '--error-msg'; ?>" class="give-intl-tel-input-hide" style="color:red;"></span> |
| 155 | 156 | |