Moodle

calendar export: allow for stripping html codes from $event->description

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8.4
  • Fix Version/s: None
  • Component/s: Calendar
  • Labels:
    None
  • Environment:
    Debian GNU/Linux
  • Affected Branches:
    MOODLE_18_STABLE

Description

Trying to import the exported calendar into Thunderbird/Lightning, all the event descriptions are full of html code. Dont' know if this is a problem in other calendar apps. It would be nice to add an option to transform html to text.

I was able to solve the problem for me by adding the few lines of code from the html2txt function from [1] into calendar_execute, before calling $ev->add_property('description',...).

[1] http://www.phpinfo.net/page/archives/astuces/php/html/

Activity

There are no comments yet on this issue.

People

Vote (2)
Watch (0)

Dates

  • Created:
    Updated: