| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | use Exception; |
| 6 | 6 | use FluentForm\App\Helpers\Helper; |
| 7 | 7 | use FluentForm\App\Models\Form; |
| 8 | 8 | use FluentForm\App\Models\FormMeta; |
| 9 | +use FluentForm\App\Services\FormBuilder\AutocompleteTokens; | |
| 9 | 10 | use FluentForm\App\Services\FormBuilder\DateConfigPolicy; |
| 10 | 11 | use FluentForm\App\Services\FormBuilder\RatingIcon; |
| 11 | 12 | use FluentForm\Framework\Support\Arr; |
| 12 | 13 | use FluentForm\App\Modules\Form\FormFieldsParser; |
| @@ -151,13 +152,14 @@ | ||
| 151 | 152 | return $fields; |
| 152 | 153 | } |
| 153 | 154 | |
| 154 | 155 | $attributesMap = [ |
| 155 | - 'name' => 'sanitize_key', | |
| 156 | - 'value' => 'sanitize_textarea_field', | |
| 157 | - 'id' => 'sanitize_key', | |
| 158 | - 'class' => 'sanitize_text_field', | |
| 159 | - 'placeholder' => 'sanitize_text_field', | |
| 156 | + 'name' => 'sanitize_key', | |
| 157 | + 'value' => 'sanitize_textarea_field', | |
| 158 | + 'id' => 'sanitize_key', | |
| 159 | + 'class' => 'sanitize_text_field', | |
| 160 | + 'placeholder' => 'sanitize_text_field', | |
| 161 | + 'autocomplete' => [AutocompleteTokens::class, 'sanitize'], | |
| 160 | 162 | ]; |
| 161 | 163 | |
| 162 | 164 | $attributesKeys = array_keys($attributesMap); |
| 163 | 165 | |
| @@ -191,8 +193,12 @@ | ||
| 191 | 193 | 'crop_ratio' => 'sanitize_text_field', |
| 192 | 194 | 'crop_width' => 'absint', |
| 193 | 195 | 'crop_height' => 'absint', |
| 194 | 196 | 'enforce_image_dimensions' => 'sanitize_text_field', |
| 197 | + 'start_text' => 'fluentform_sanitize_html', | |
| 198 | + 'end_text' => 'fluentform_sanitize_html', | |
| 199 | + 'price_label' => 'fluentform_sanitize_html', | |
| 200 | + 'cart_empty_text' => 'fluentform_sanitize_html', | |
| 195 | 201 | ]; |
| 196 | 202 | |
| 197 | 203 | $settingsKeys = array_keys($settingsMap); |
| 198 | 204 | |