SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard Zaggs's Avatar
    Join Date
    Feb 2005
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google News rss parser

    Hi guys,

    I have created a Google News rss parser, but need to know if its possible to remove the <font> formatting tags from the rss feed. Does anybody know if this is possible and if so, how?

    Here's the Google News rss feed: http://news.google.com/?output=rss

    If you look at the source you will need the font formatting. I would just like to remove these tags when parsing the rss.

    Thanks in advance.

  2. #2
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,397
    Mentioned
    63 Post(s)
    Tagged
    0 Thread(s)
    For a quick fix, you could use htmlspecialchars_decode and then strip_tags.
    Salathe
    Software Developer and PHP Manual Author.


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
  •