<?php var_dump( strip_tags( '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>' ) ); // with wshitespace at start and end. var_dump( strip_tags( ' <p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>. ' ) ); // whitespace throughout var_dump( strip_tags( ' <p> Test paragraph </p><!-- Comment --> <a href="#fragment"> Other text </a>. ' ) );
You have javascript disabled. You will not be able to edit any code.