Changeset 3763 for trunk/wp-includes/functions-formatting.php
- Timestamp:
- 05/05/2006 07:49:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r3751 r3763 1041 1041 } 1042 1042 1043 // Escape single quotes, specialchar double quotes, and fix line endings. 1044 function js_escape($text) { 1045 $text = wp_specialchars($text, 'double'); 1046 return preg_replace("/\r?\n/", "\\n", addslashes($text)); 1047 } 1043 1048 ?>
Note: See TracChangeset
for help on using the changeset viewer.