From bf8dcac88c1b1bf8ccbae7974c92facc99d76192 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 4 Dec 2025 13:14:44 +0100 Subject: [PATCH] Move inline styles to global CSS file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moved .log-highlight styles from Livewire component views to resources/css/app.css for better separation of concerns and reusability. This follows Laravel and Livewire best practices by keeping styles in the appropriate location rather than inline in component views. Changes: - Added .log-highlight styles to resources/css/app.css - Removed inline '; + $escaped = htmlspecialchars($maliciousContent); + + // x-text renders everything as text: + // 1. Style tags never get parsed as HTML + // 2. CSS never gets applied + // 3. User just sees the literal style tag content + + expect($escaped)->toContain('<style>'); + expect($escaped)->not->toContain('