@extends('user.layouts.app') @section('body_class', 'rules-page') @section('content')
]*>(.*?)<\/p>/is', function ($matches) { // remove span/font inside p $clean = preg_replace('/<\/?(span|font)[^>]*>/i', '', $matches[1]); return '
' . $clean . '
'; }, $rulesRegulation->section_description ) !!}