Changeset 465
- Timestamp:
- 10/25/2003 10:05:38 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r458 r465 85 85 86 86 return $pee; 87 } 88 89 function sanitize_title($title) { 90 $title = strtolower($title); 91 $title = preg_replace('/&.+;/', '', $title); // kill entities 92 $title = preg_replace('/[^a-z0-9 ]/', '', $title); 93 $title = preg_replace('/\s+/', ' ', $title); 94 $title = trim($title); 95 $title = str_replace(' ', '-', $title); 96 return $title; 87 97 } 88 98
Note: See TracChangeset
for help on using the changeset viewer.