Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/Http/Controllers/ToolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public function index(): View
'route' => 'tools.regex',
'icon' => 'regex',
],
[
'name' => 'HTML Entity Encoder',
'description' => 'Encode/decode HTML entities and special characters',
'route' => 'tools.html-entity',
'icon' => 'html-entity',
],
];

return view('home', compact('tools'));
Expand Down Expand Up @@ -134,4 +140,9 @@ public function regex(): View
{
return view('tools.regex');
}

public function htmlEntity(): View
{
return view('tools.html-entity');
}
}
5 changes: 5 additions & 0 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
<circle cx="12" cy="12" r="4" stroke-width="2"/>
</svg>
@break
@case('html-entity')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/>
</svg>
@break
@endswitch
</div>
<div class="flex-1 min-w-0">
Expand Down
Loading