<?php
namespace bdrem;
-class Renderer_HtmlTable
+class Renderer_HtmlTable extends Renderer
{
+ protected $httpContentType = 'text/html; charset=utf-8';
+
public function render($arEvents)
{
$s = <<<HTM
. "</tr>\n",
$event->days,
$event->age,
- $event->title,
- $event->type,
+ htmlspecialchars($event->title),
+ htmlspecialchars($event->type),
$event->date,
strftime('%a', strtotime($event->localDate))
);