Stripping RSS of unnecessary code?

Discussion in 'XML & RSS' started by kelp, Jul 25, 2006.

  1. #1
    I have a collection of RSS feeds on a website, and I just thought to myself, this is not going to work. Some websites have all this code in their RSS feed which really screws up my website layout. Is there anyway around this?
     
    kelp, Jul 25, 2006 IP
  2. Kendothpro

    Kendothpro Well-Known Member

    Messages:
    574
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #2
    yep, php saves the day as usual

    strip_tags($code)
     
    Kendothpro, Jul 28, 2006 IP
  3. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #3
    ASP also, Server.CreateObject("MSXML2.Domdocument"), tested
     
    ludwig, Jul 29, 2006 IP
  4. weppos

    weppos Well-Known Member

    Messages:
    99
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Server.CreateObject("MSXML2.Domdocument") is just an ASP object inizialization.
    In ASP there's no a proper function to strip tags, you should create it.

    Do you use ASP o PHP?
     
    weppos, Jul 31, 2006 IP
  5. kelp

    kelp Peon

    Messages:
    306
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I use PHP, but I installed CaRP for parsing RSS to PHP, so it's fine now.
     
    kelp, Jul 31, 2006 IP
  6. otssolutions_administrator

    otssolutions_administrator Peon

    Messages:
    82
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    can any one tell me how we use the RSS feed ion our site.
    please tell me i need it.