Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - matg

Pages: [1]
1
Beginners - Learning PHP / Style & Colour words on a page from RSS feed
« on: December 10, 2007, 04:54:30 PM »
Hello,

I have an RSS feed from a 3rd party that I render back to HTML using SimplePie.

In the feed each article title if prefixed by one of the following:

[Severe]
[Medium]
[Slight]

I'd like the words to be colored:

[Severe] to be red and bold
[Medium] to be yellow
[Slight] to be blue

I don't have any access to the original feed so how can the words be colored and styled?

I'm using php 4.4.2 with Apache

Thank you

Pages: [1]