@php
$cleanContent = $blog->content;
// Remove inline style attributes
$cleanContent = preg_replace('/\s*style=("|\')(.*?)("|\')/i', '', $cleanContent);
// Remove span and font tags but preserve their content
$cleanContent = preg_replace('/<\/?(span|font)[^>]*>/i', '', $cleanContent);
// Remove empty
tags that contain only spaces, , or nothing $cleanContent = preg_replace('/
(\s| | | )*<\/p>/i', '', $cleanContent); // Optionally trim the result $cleanContent = trim($cleanContent); // Output echo $cleanContent; @endphp
Upcoming Batches For Artificial Intelligence Certification Course
| Course Name | Date | |
|---|---|---|
| Artificial Intelligence Certification Course |
Class Starts on 25th November,2023 25th November SAT&SUN (Weekend Batch) |
View Details |
Trending Courses
@php foreach($data['trending_course'] as $row){ @endphp
@php } @endphp
 }}/img/share/whatsapp.png)
 }}/img/share/twitter.png)
 }}/img/share/facebook.png)
 }}/img/share/reddit.png)
 }}/img/share/feather_link.png)