M
M
Mikhail2021-09-28 14:40:57
PHP
Mikhail, 2021-09-28 14:40:57

How to remove two consecutive tags?

It is not possible to delete two consecutive tags
, perhaps because the tags are on different lines.
The text from which I am trying to delete:

Men's warm
sweaters are available Fabrics Good
size 4850525456
Price: pieces 950 rubles
giant size: 58606264 in size
price 1050 rubles
order from 5000 rubles can send all transport companies and mail, bus
order building A 1v-21, via whatsapp 79036833178 ,89013516278
Vk.comid440573982
Vk.comid556037474
Vk.comid471877585

<p>В наличий свитера мужской тёплый <br>Тканы Хороший <br>размер 4850525456<br>Цена : штук 950 руб <br>великан размер:58606264в размер<br>цена 1050 руб <br>заказ от 5000 рублей может отправить все транспорта компании и почтой , автобус<br>заказ корпус А 1в-21,через ватсап 79036833178 ,89013516278<br><br>Vk.comid440573982<br>Vk.comid556037474<br>Vk.comid471877585</p>


Understood, the code worked: If there is another solution, it will be interesting to know.

$text= str_replace("<br><br>", "<br>", $text);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question