SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Mr. Tech's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Str_Replace MS Word Elements

    I have user submitted articles on my site. Most of the time they are copied from MS Word and have code such as , and , in it. XHTML doesn't like these. Is there any way tor eplace them? I tried this but it isn't working:

    $article = str_replace("", "\"", $article);

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2005
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try single quotes around the stuff you'd like replaced instead.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •