RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / iCal Import is masking HTML
Posted:  20 Aug 2011 23:15
All,
     I like to center my Holiday titles.  I create an iCAL file to import them and in the "SUMMARY:" field I include HTML code for centering.  For example:
     SUMMARY:<center>Reformation Sunday</center>
     The iCAL import process strips the HTML and leaves me with "Reformation Sunday" for the Title, but I can't find where it does that.  I've searched importICS.php thoroughly.  Who can point out where the strip happens?
     Thanks.
     Dave
Posted:  21 Aug 2011 10:27   Last Edited By: Roel B.
Hi Dave,
The HTML tags are stripped from the titles on line 421 of the importICS.php file.
If you change this line into:
$title = addslashes($_POST["title"][$i]);
then HTML tags will stay.

Beware: some HTML tags, or tags with a missing end-tag, in fields which later are displayed in the calendar may cause strange side effects.