Hello!

I'm using Calendar API with Gdata Zend Library. And I've got a
question about how to set content if it contains html?

Is the following way OK?

----------------
...
$content = "<a href=\"http://www.example.com\"";>Here is <b>bold</b>
text</a>";
$content = htmlspecialchars( stripslashes($conten) );
...
$gdataCal = new Zend_Gdata_Calendar($client);
$newEvent = $gdataCal->newEventEntry();
...
$newEvent->content = $gdataCal->newContent("{$content}");
$newEvent->content->type = "html";
...
$createdEvent = $gdataCal->insertEvent($newEvent, $cal_feed);
----------------

Is it okay?
And that type of content is set by default?

Many thanks!

--~--~---------~--~----~------------~-------~--~----~
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