Fixing a check error treatment around thumbnails and publications
fixing bug #5993
some characters (like quote, double quote) were not correctly managed in Javascript code
Using JSTL functions.
fixing bug introduced with feature #5155 : cut/copy/paste of publications was broken