On Fri, Dec 12, 2008 at 12:21 AM, watermelonkid <[email protected]> wrote:
>
> Hello,
>
> I have managed to use some of the examples and posts from these
> discussions to get my Event feed using JSON and GCal. Now that I have,
> I am noticing one big problem: if my client were to put  a link in the
> Event Description (ex. http://www.bcap.org) the link is outputted to
> the web page, but it is not linked/active. It's just plain text!
>
> Does anyone know a way that these links might come out linked? Is
> there a way to parse the description content (entry.content.$t;) and
> if found, link the hyperlink?
>
> Conceptually speaking, could I add some kind of identifier at the
> beginning of the link and after the link that would tell the script
> where to create <a href="" target="_blank"> and </a> tags with what's
> in between being the href?
>
> Thanks,
>
> Brent

Your best bet is to use a regex or other string manipulation to detect
the hyperlink.

You can add HTML using &lt; and &gt; in place of < and >,
respectively. That will allow you to create a hyperlink (&lt;a
href="..."&gt;) in the Calendar UI, which would also serve as your
markers for find/replace (being careful not to allow unexpected HTML
to be output, since that might allow an XSS attack). I'm not sure if
outputting URLs constructed this way in the Calendar UI is something
we officially support or not, though.

-- 
Trevor Johns

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to