homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

RSS with <FONT> tags?

10+ Year Member

Msg#: 213 posted 5:01 pm on Mar 22, 2005 (gmt 0)

Hi, I have a website <snip> which is updated by a <textarea> input form which has a javascript program that allows the user to Bold, Italicize, or change the font. It does this by using the HTML <font> tag.

Is it possible to create RSS feeds with Font tags? Will the RSS viewer ignore them? There's no easy way in which I can strip them out.

Any help is appreciated!


[edited by: werty at 9:35 pm (utc) on Mar. 22, 2005]
[edit reason] Removed URL Please See TOS #13 [/edit]



10+ Year Member

Msg#: 213 posted 6:59 pm on Mar 22, 2005 (gmt 0)

It depends on the aggregator your users are using. Having markup tags in the code is not valid XML, unless they're marked as CDATA.

The best thing to do would be to find a way to strip out the markup -- it just doesn't make sense within the context of RSS to try to specify formatting.

To see if problems actually arise, you could just create the feed. Don't publicize it anywhere, but plug it into a variety of aggregators (including My Yahoo, Bloglines, and a couple of stand-alone readers) and see what happens.


5+ Year Member

Msg#: 213 posted 1:24 pm on Mar 24, 2005 (gmt 0)

XHTML is valid XML however, just make sure to specify the correct XML namespace for it (http://www.w3.org/1999/xhtml).


10+ Year Member

Msg#: 213 posted 6:24 pm on Mar 25, 2005 (gmt 0)

You can strip anything you'd like out of the feed output. The following example is for outputting a DMOZ feed but could be easily adapted to your needs.

Function gethtmlresult(DMOZURL,htmlbegin,htmlend)
Dim objXMLHTTP, htmlresult, htmlcontent
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
htmlcontent = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
Dim begin, theend
begin = Instr(htmlcontent,htmlbegin)
theend = Instr(htmlcontent,htmlend)
If begin <> 0 and theend <> 0 Then
htmlresult = mid(htmlcontent,InStr(1,htmlcontent,htmlbegin,1), InStr(1,htmlcontent,htmlend,1) - InStr(1,htmlcontent,htmlbegin,1))
Response.Write " "
End If
gethtmlresult = htmlresult
End Function

<% response.buffer=true %>
<!--#include file="strip.asp" -->
If Request.QueryString() = "/" Then
Response.Redirect "http://www.yourpage.com"
End If


DMOZURL = "http://dmoz.org" & request.querystring()

Dim DMOZresult
DMOZresult = gethtmlresult(DMOZURL,"</form>","<table width=""95%"" cellpadding=0 cellspacing=0>")
strtitle = request.querystring()
'strtitle = Replace(strtitle,"/"," ")

MyArray = Split(strtitle,"/")
i = (UBound(MyArray) - 1)
strtitle = MyArray(i)
strtitle = Replace(strtitle,"_"," ")

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved