homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
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?
mherchel




msg:1541469
 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!

Thanks,

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

 

teaperson




msg:1541470
 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.

Leffe




msg:1541471
 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).

flyerguy




msg:1541472
 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.

strip.asp>
<%
Function gethtmlresult(DMOZURL,htmlbegin,htmlend)
Dim objXMLHTTP, htmlresult, htmlcontent
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", DMOZURL, False
objXMLHTTP.Send
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))
Else
Response.Write " "
End If
gethtmlresult = htmlresult
End Function
%>


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

dim DMOZURL

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved