WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Description in exported calendar has htmlentities and tags (4 posts)

  1. shrmn
    Member
    Posted 2 years ago #

    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/

  2. ullemehner
    Member
    Posted 2 years ago #

    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

  3. mauryg
    Member
    Posted 1 year ago #

    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.

  4. bradgeelan
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic