Skip to content

Commit

Permalink
Merge pull request #538 from iftakharul-islam/fix/special-character-e…
Browse files Browse the repository at this point in the history
…ncoding

Fix :decode html entities like & to &
  • Loading branch information
iftakharul-islam authored Feb 18, 2025
2 parents 2094f7e + 27dcea1 commit 06898b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Settings/Controllers/Task_Types_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function index( WP_REST_Request $request ) {
}

$type_collection = $types->getCollection();

$resource = new Collection( $type_collection, new Task_Type_Transformer );
$resource->setPaginator( new IlluminatePaginatorAdapter( $types ) );

Expand Down
4 changes: 2 additions & 2 deletions src/Settings/Sanitizers/Task_Type_Sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
class Task_Type_Sanitizer extends Abstract_Sanitizer {
public function filters() {
return [
'title' => 'trimer|pm_kses',
'description' => 'trimer|pm_kses',
'title' => 'trimer|sanitize_text_field',
'description' => 'trimer|sanitize_text_field',
];
}
}

0 comments on commit 06898b2

Please sign in to comment.