I need to automatically replace when some iframe is in the HTML code and be replaced with an href for example because the iframe is not properly shown when it is received by email. So as an example if I have:
<iframe class=\"ql-video\" frameborder=\"0\" allowfullscreen=\"true\" src=\"https://www.youtube.com/embed/Lorem\"></iframe><p><br></p>
It should be replaced with:
<p><a href=\"https://www.youtube.com/watch?Lorem\" target=\"_blank\">https://www.youtube.com/watch?Lorem</a></p>