Skip to content

Commit

Permalink
Fixed HTML special character for title
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 9, 2022
1 parent 66b5123 commit 9dc6dfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Support/SortableLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public static function render(array $parameters): string
list($sortColumn, $sortParameter, $title, $queryParameters, $anchorAttributes) = self::parseParameters($parameters);

$title = self::applyFormatting($title, $sortColumn);

// clear special chars
$title = htmlspecialchars_decode($title, ENT_QUOTES);

if ($mergeTitleAs = config('sortable.inject_title_as')) {
request()->merge([$mergeTitleAs => $title]);
Expand Down

0 comments on commit 9dc6dfe

Please sign in to comment.