[EventCalendar] ec3_get_events() not translating ampersands into
character entities
ejm
cq547 at torfree.net
Thu Oct 4 13:51:58 UTC 2007
Thank you for your reply;
>you will have to tweak the ec3_get_events() in template_tags.php
Of course, you meant to say template-functions.php (or has this
filename been changed in 3.1.1.rc2?)
And your fix does work - ie, it does not break anything, but I'm
embarrassed to say that it turns out that it was not the event
calendar that was causing the validation errors. It is another plugin
(Get Custom Field Values) that I will have to tweak so that any URLs
in the custom fields will have ampersands translated into their
character entities rather than reversing the process, using something
along these lines:
$data['LINK']=htmlentities(get_permalink($entry->id));
instead of:
$data['LINK']=htmlentities(html_entity_decode(get_permalink($entry->id)));
Thank you for getting me started in the right direction. I will look
at the page on htmlentities in php.net and the coding in the custom
field values to see if I can find something similar.
Thank you again and please excuse the misuse of your time.
-ejm
On Wed, 3 Oct 2007 20:05:14 +0200, "Dr. Peter Troxler" wrote:
>you will have to tweak the ec3_get_events() in template_tags.php
>function in a very peculiar way:
>
>find this section
>
> $data['TITLE'] =$entry->post_title;
> $data['LINK'] =get_permalink($entry->id);
> $data['AUTHOR']=$entry->author;
>
>_______________________________________________
>Blog: http://wpcal.firetree.net/
>EventCalendar at firetree.net mailing list
>Unsubscribe: http://penguin.firetree.net/eventcalendar
More information about the EventCalendar
mailing list