PDA

View Full Version : Keyword with slashes


Johnny Utah
01-23-2008, 06:43 PM
I'm trying to use "f/t" as a keyword, but when I save it, the slash gets stripped. Is there a work around for this?

Morgan
01-23-2008, 07:12 PM
Slash is not allowed. Only word characters (\w), apostrophe ('), and dash (-) are allowed in keywords. If you want other characters, you'll need to add to the following character class that appears multiple times in the code:

$text = preg_replace('/[^\w\s,\'\-]/', '', $text);