<?php $s = '<a href=#> <div> This text </div> And this too <img src=wrong></a>'; var_dump(strip_tags($s));
Standard input is empty
string(26) " This text And this too "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!