Task in title. Here is the code

$description = strip_tags($one_post, '<p><quote><b><strong><i><u><strike><em><center><img><h2><h3><h4><h5><h6><li><ol><ul><br><hr><table><tr><td><th><thead>'); // вырезаем все теги кроме... $description1 = preg_replace('/<([az][a-z0-9]*)[^>]*?(\/?)>/i','<$1$2>', $description); // у всех тегов вырезаем атрибуты 

I need the code for the mass cleaning of the description and it will be used once, so it's okay that it is clumsy.

    0