Issue Bug Closed

#57355ViewHelper format.date not encoding entities

Gonçal Carrero 03/27/14, 00:30 updated 03/27/14, 15:23

Description

We have a template in which we have a <f:format format="%B">@{eventDate.dateTimeStamp} this outputs the month <br>localised. It works well, but the problem is that some months are not showing because they have entities not encoded. For example if month is March but localised in Catalan (Març), this month is not showing.</f:format>

Our solution at this moment is change line 114 of the viewhelper:

return strftime($format, $date->format(‘U’));

for:

return htmlentities(strftime($format, $date->format(‘U’)));

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.