Support » Plugin: All-in-One Event Calendar » [Plugin: All-in-One Event Calendar] Description in exported calendar has htmlentities and tags

  • Resolved shrmn

    (@shrmn)


    In an exported calendar, the HTML tags and entities are not filtered out of the description area (i.e. your Post Content).

    To fix this, you can apply the following changes to /app/helper/class-ai1ec-exporter-helper.php

    Line 69, change

    $content = apply_filters( 'the_content', $event->post->post_content );

    to

    $content = html_entity_decode( strip_tags(apply_filters( 'the_content', $event->post->post_content )), ENT_QUOTES, 'UTF-8');

    With this, you can have a nice cleanly formatted description view in your exported calendar(s).

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I just checked in release candidate (1) for 1.8: This issue is still not fixed, neither in free and premium.

    Hope the simple solution suggested by shrmn will finally make it into final 1.8
    Cheers,
    Ulle

    I’m using 1.8.3 premium and had the same problem with the descriptions. The fix suggested by shrmn fixed it perfectly. Now hopefully the daylight savings time problem will go away on November 4th.

    I just used the above code from shrmn but now when opening my site receive the following errors.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/b/r/a/bradgeelan/html/wp-content/plugins/all-in-one-event-calendar/app/helper/class-ai1ec-exporter-helper.php:1) in /home/content/b/r/a/bradgeelan/html/wp-content/plugins/all-in-one-event-calendar/app/plugins/Ai1ecFacebookConnectorPlugin.php on line 148

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/b/r/a/bradgeelan/html/wp-content/plugins/all-in-one-event-calendar/app/helper/class-ai1ec-exporter-helper.php:1) in /home/content/b/r/a/bradgeelan/html/wp-includes/pluggable.php on line 881

    Would appreciate any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: All-in-One Event Calendar] Description in exported calendar has htmlentities and tags’ is closed to new replies.