| @@ -105,11 +105,11 @@ | ||
| 105 | 105 | * |
| 106 | 106 | * @return string |
| 107 | 107 | */ |
| 108 | 108 | public static function sanitize_wysiwyg( $input ): string { |
| 109 | - $input = wp_specialchars_decode( stripslashes( $input ), ENT_COMPAT ); | |
| 109 | + $input = wp_kses_post( $input ); | |
| 110 | 110 | |
| 111 | - return wp_kses_post( $input ); | |
| 111 | + return wp_specialchars_decode( stripslashes( $input ), ENT_COMPAT ); | |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * Return all taxonomies list to use in JS components |