[EventCalendar] ec3_get_events() not translating ampersands into character entities

Dr. Peter Troxler peter.troxler at gmx.net
Wed Oct 10 18:27:16 UTC 2007


have you tried this

htmlentities(html_entity_decode($calendar_days[$day_id]->get_titles());

this essentially converts all html (that might eventually be sitting  
there) to normal characters and converts them back to valid html

/ pt

On 10-okt-2007, at 18:44, ejm wrote:

> Thank you for your reply, JD;
>
>> Find
>> $calendar_days[$day_id]->get_titles()
>>
>> Replace it with
>> wp_specialchars($calendar_days[$day_id]->get_titles())
>
> Alas, I thought I had mentioned that I have already tried this (it was
> actually the first thing I tried).  All that happens is that it
> translates any ampersand that is there in the title spec to produce:
>
> &amp
>
> instead of the other incorrect version that is there now:
>
> &amp
>
> Rats. Any other ideas??
>
> -ejm
>
> On Wed, 10 Oct 2007 09:43:13 -0400, "JD Puglisi" wrote:
>> OK...one more for you to try. Let's filter the title call in the  
>> calendar.
>>
>> In template-functions.php, (around line 234
>> Find
>> $calendar_days[$day_id]->get_titles()
>>
>> Replace it with
>> wp_specialchars($calendar_days[$day_id]->get_titles())
>>
>> ------------------------
>> I have now added your suggested fix. The page loads without visible
>> error messages but alas, the same validation errors persist. Here is
>> just one of the error messages:
>>
>> ---validator.w3.org---
>> Line 704, Column 197: reference not terminated by REFC delimiter.
>>
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar




More information about the EventCalendar mailing list