Changeset 3906 for branches/2.0/wp-includes/functions-formatting.php
- Timestamp:
- 06/24/2006 01:20:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions-formatting.php
r3856 r3906 1020 1020 function js_escape($text) { 1021 1021 $text = wp_specialchars($text, 'double'); 1022 return preg_replace("/\r?\n/", "\\n", addslashes($text)); 1022 $text = str_replace(''', "'", $text); 1023 return preg_replace("/\r?\n/", "\\n", addslashes($text)); 1023 1024 } 1024 1025 ?>
Note: See TracChangeset
for help on using the changeset viewer.