Open carl-georg1 opened 1 year ago
We're using html in our No Favorites Text but all the tags gets stripped out. The sanitize_text_field removes the tags, but there's also back slashes which get added somewhere in the JSON.
I've made a temporary fix. But please fix in next release:
FILE:
/favorites/app/Listeners/FavoriteList.php
LINE: 39 $this->data['no_favorites'] = ( isset($_POST['no_favorites']) ) ? sanitize_text_field($_POST['no_favorites']) : '';
Temporary fix:
$this->data['no_favorites'] = ( isset($_POST['no_favorites']) ) ? str_replace('\', '', $_POST['no_favorites']) : '';
See attached screenshots for more info
We're using html in our No Favorites Text but all the tags gets stripped out. The sanitize_text_field removes the tags, but there's also back slashes which get added somewhere in the JSON.
I've made a temporary fix. But please fix in next release:
FILE:
/favorites/app/Listeners/FavoriteList.php
LINE: 39 $this->data['no_favorites'] = ( isset($_POST['no_favorites']) ) ? sanitize_text_field($_POST['no_favorites']) : '';
Temporary fix:
$this->data['no_favorites'] = ( isset($_POST['no_favorites']) ) ? str_replace('\', '', $_POST['no_favorites']) : '';
See attached screenshots for more info
![Screenshot 2023-06-06 183919](https://github.com/kylephillips/favorites/assets/108915894/4609dcad-fcd9-4ff9-8242-3769bf43841c)