Changeset 2086
- Timestamp:
- 04/25/08 01:00:26 (15 months ago)
- Files:
-
- 1 modified
-
branches/release-36/lib/MT/Util.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-36/lib/MT/Util.pm
r1912 r2086 653 653 $s = remove_html($s); ## remove HTML tags. 654 654 $s =~ s!&[^;\s]+;!!gs; ## remove HTML entities. 655 $s =~ s![^\w\s ]!!gs; ## remove non-word/space chars.655 $s =~ s![^\w\s-]!!gs; ## remove non-word/space chars. 656 656 $s =~ s!\s+!$sep!gs; ## change space chars to underscores. 657 657 $s; … … 670 670 $s = remove_html($s); ## remove HTML tags. 671 671 $s =~ s!&[^;\s]+;!!gs; ## remove HTML entities. 672 $s =~ s![^\w\s ]!!gs; ## remove non-word/space chars.672 $s =~ s![^\w\s-]!!gs; ## remove non-word/space chars. 673 673 $s =~ s!\s+!$sep!gs; ## change space chars to underscores. 674 674 $s;
