html ajouter div autour de certains iframe php
$new = str_replace(['<iframe', '</iframe>'], ['<div class="generated-div"><iframe', '</iframe></div>'], $str);
Splendid Swan
$new = str_replace(['<iframe', '</iframe>'], ['<div class="generated-div"><iframe', '</iframe></div>'], $str);