Index: src/wp-includes/formatting.php
===================================================================
--- src/wp-includes/formatting.php	(revision 41829)
+++ src/wp-includes/formatting.php	(arbetskopia)
@@ -3921,6 +3921,9 @@
 	$safe_text = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes( $safe_text ) );
 	$safe_text = str_replace( "\r", '', $safe_text );
 	$safe_text = str_replace( "\n", '\\n', addslashes( $safe_text ) );
+    if ( seems_utf8( $safe_text ) ) {
+        $safe_text = str_replace( array( "\xe2\x80\xa8", "\xe2\x80\xa9" ), array( "\u2028", "\u2029" ), $safe_text );
+    }
 	/**
 	 * Filters a string cleaned and escaped for output in JavaScript.
 	 *
