Changeset 47122 for trunk/tests/phpunit/tests/formatting/WPStripAllTags.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPStripAllTags.php
r46586 r47122 15 15 $this->assertEquals( "lorem\nipsum", wp_strip_all_tags( $text ) ); 16 16 17 // test removing breaks is working17 // Test removing breaks is working. 18 18 $text = 'lorem<br />ipsum'; 19 19 $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text, true ) ); 20 20 21 // test script / style tag's contents is removed21 // Test script / style tag's contents is removed. 22 22 $text = 'lorem<script>alert(document.cookie)</script>ipsum'; 23 23 $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) ); … … 26 26 $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) ); 27 27 28 // test "marlformed" markup of contents28 // Test "marlformed" markup of contents. 29 29 $text = "lorem<style>* { display: 'none' }<script>alert( document.cookie )</script></style>ipsum"; 30 30 $this->assertEquals( 'loremipsum', wp_strip_all_tags( $text ) );
Note: See TracChangeset
for help on using the changeset viewer.