@props([ 'content' => '', 'class' => '', 'default' => '-' ]) @php // Check if content contains HTML tags $isHtml = $content && preg_match('/<[^>]+>/', $content); // Clean HTML content if it contains tags $cleanContent = ''; if ($content) { if ($isHtml) { // Use purifier if available, otherwise strip tags $cleanContent = function_exists('clean') ? clean($content) : strip_tags($content, '