deraadt/Moodle-block_progress — pull request #2 by nadavkav (2013-08-11 17:29:02+00:00)
Title: Add slashes (make safe) "single quote" character(s) on date string (whic...

...h breaks JS)

When using Hebrew language in the course, Date strings include "Single Quote" chars just after the "Day" element in the Date format string. It breaks the JavaScript :-(

It might happen on other non English languages. so I am adding this safety check which "add slashes" to the "Single Quote" char in the string.

Please code review, In case this hack needs to be applied elsewhere too.

Nadav :-)