We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98fc44d commit 60920d2Copy full SHA for 60920d2
tests/phpunit/tests/formatting/stripHtmlNewlines.php
@@ -25,6 +25,11 @@ public function test_strips_newlines_from_text_nodes() {
25
'Newlines within and around inline elements should be stripped.'
26
);
27
}
28
+
29
+ /**
30
+ *
31
+ * @ticket 5678
32
+ */
33
public function test_preserves_newlines_in_preformatted_elements() {
34
$input = "<p>Normal\ntext</p>\n<pre>\nPreformatted\nlines\n</pre>\n<p>More\ntext</p>";
35
$result = strip_html_newlines( $input );
0 commit comments