Skip to content

Commit 3676cdd

Browse files
committed
typo
1 parent 9dc6dfe commit 3676cdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Support/SortableLink.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ public static function render(array $parameters): string
1616
list($sortColumn, $sortParameter, $title, $queryParameters, $anchorAttributes) = self::parseParameters($parameters);
1717

1818
$title = self::applyFormatting($title, $sortColumn);
19-
20-
// clear special chars
21-
$title = htmlspecialchars_decode($title, ENT_QUOTES);
2219

2320
if ($mergeTitleAs = config('sortable.inject_title_as')) {
2421
request()->merge([$mergeTitleAs => $title]);
@@ -89,6 +86,9 @@ private static function applyFormatting($title, string $sortColumn)
8986
return $title;
9087
}
9188

89+
// clear special chars
90+
$title = htmlspecialchars_decode($title, ENT_QUOTES);
91+
9292
if ($title === null) {
9393
$title = $sortColumn;
9494
} elseif (! config('sortable.format_custom_titles')) {

0 commit comments

Comments
 (0)