|RSS with <FONT> tags?|
| 5:01 pm on Mar 22, 2005 (gmt 0)|
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)|
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)|
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)|
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.
Dim objXMLHTTP, htmlresult, htmlcontent
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", DMOZURL, False
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 " "
gethtmlresult = htmlresult
<% response.buffer=true %>
<!--#include file="strip.asp" -->
If Request.QueryString() = "/" Then
DMOZURL = "http://dmoz.org" & request.querystring()
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,"_"," ")