Welcome to WebmasterWorld Guest from

Forum Moderators: bill & werty

Message Too Old, No Replies

RSS with <FONT> tags?



5:01 pm on Mar 22, 2005 (gmt 0)

Inactive Member
Account Expired


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]

6:59 pm on Mar 22, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 2, 2004
votes: 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.

1:24 pm on Mar 24, 2005 (gmt 0)

New User

10+ Year Member

joined:Mar 9, 2005
votes: 0

XHTML is valid XML however, just make sure to specify the correct XML namespace for it (http://www.w3.org/1999/xhtml).
6:24 pm on Mar 25, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2004
votes: 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,"_"," ")