Changeset 5735
- Timestamp:
- 06/19/07 22:47:01 (1 year ago)
- Files:
-
- branches/2.2/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/wp-includes/formatting.php
r5713 r5735 1104 1104 function js_escape($text) { 1105 1105 $safe_text = wp_specialchars($text, 'double'); 1106 $safe_text = str_replace(''', "'", $safe_text);1106 $safe_text = preg_replace('/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes($safe_text)); 1107 1107 $safe_text = preg_replace("/\r?\n/", "\\n", addslashes($safe_text)); 1108 1108 return apply_filters('js_escape', $safe_text, $text);
