From: Olivier Le Floch Date: Tue, 27 May 2008 15:57:30 +0000 (+0200) Subject: Minor fix to inlined javascript - un-escaped '/' is not allowed X-Git-Tag: core/1.0.0~170 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=231c87d013670f4efe6a7642d4492869ef8bdf87;p=platal.git Minor fix to inlined javascript - un-escaped '/' is not allowed By the way Vincent, I think that that is a good argument in favor of external javascript files instead of inlined ones (as are enabling compression, caching, etc.) --- diff --git a/templates/search/adv.form.tpl b/templates/search/adv.form.tpl index 5461b49..f2648e8 100644 --- a/templates/search/adv.form.tpl +++ b/templates/search/adv.form.tpl @@ -32,13 +32,13 @@ return function(row) { regexp = new RegExp('(' + RegExp.escape(block.value) + ')', 'i'); - name = row[0].replace(regexp, '$1'); + name = row[0].replace(regexp, '$1<\/strong>'); if (row[1] == 1) { return name; } - return name + '  -  '+ row[1] + ' camarades'; + return name + '  -  ' + row[1] + ' camarades<\/em>'; }; }