Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.4.0-b1
-
Fix Version/s: 3.4.0-b2
-
Component/s: None
-
Labels:None
Description
Update the titles to remove the following basic characters:
+, ?, %, =, #, %
We may want to also remove
! @ # $ % ^ & * ( ) ' " , < . > ; : - _ |
] ^ ` ~
Issue Links
- relates to
-
CORE-1526 Support Manager: Remove beginning/ending dashes from article title URIs
- Closed
Ultimately, I think we want to allow alpha numeric characters only, replacing certain special characters including spaces with hyphens, and stripping out others.
Wordpress does this with a function called sanitize_title_with_dashes(), the source of which can be found here - https://core.trac.wordpress.org/browser/tags/4.0.1/src/wp-includes/formatting.php#L0 Reviewing this function may be useful in determining the best approach.