Hi Wretha!

> What I would like to ADD to that is to also remove any charactors that 
> isn't reproduced well in HTML, things that may make the URL not work such 
> as:
> ! ? ( ) @ # " / \ + = . , & * - ~ `

Use regular expressions via preg_replace() - something like:

$title=preg_replace("/[\!\?\(\)[EMAIL 
PROTECTED]"\/\\\+\=\.,&\*\-\~\`]+/","",$title);

http://php.net/preg_replace 



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to