Changeset 3417
- Timestamp:
- 01/09/2006 11:49:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r2963 r3417 78 78 ############################################################################### 79 79 { 80 return preg_replace('%(< '.# EITHER: <80 return preg_replace('%(<!--.*?-->)|(<'.# EITHER: < 81 81 '[^>]*'.# things that aren't > 82 82 '(>|$)'.# > or end of string … … 98 98 return '>'; 99 99 # It matched a ">" character 100 101 if (preg_match('%^<!--.*-->$%', $string)) 102 return $string; 103 # Allow HTML comments 100 104 101 105 if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?$%', $string, $matches))
Note: See TracChangeset
for help on using the changeset viewer.