Commit ab7b5ba8dcd6d6e90343b1c382aada90f3680681

Authored by Andrea Petta
1 parent 29e34ccd

deepclient fix

Showing 1 changed file with 2 additions and 2 deletions
js/deepClient.js
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 @license 2 @license
3 The MIT License (MIT) 3 The MIT License (MIT)
4 4
5 - Copyright (c) 2015 Dipartimento di Informatica - Università di Salerno - Italy 5 + Copyright (c) 2015 Dipartimento di Informatica - Universit� di Salerno - Italy
6 6
7 Permission is hereby granted, free of charge, to any person obtaining a copy 7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal 8 of this software and associated documentation files (the "Software"), to deal
@@ -56,7 +56,7 @@ var ComponentService = @@ -56,7 +56,7 @@ var ComponentService =
56 params.fields[i] = params.fields[i].replace(/'/g,"#"); 56 params.fields[i] = params.fields[i].replace(/'/g,"#");
57 }*/ 57 }*/
58 58
59 - datalet_code += " fields='" + JSON.stringify(params.fields) + "'></" + params.component + ">"; 59 + datalet_code += " fields='" + JSON.stringify(params.fields).replace("'", "&#39;") + "'></" + params.component + ">";
60 60
61 (params.placeHolder.constructor == HTMLElement || params.placeHolder.constructor == HTMLDivElement) ? $(params.placeHolder).html(datalet_code) :/*Injection from Web Component*/ 61 (params.placeHolder.constructor == HTMLElement || params.placeHolder.constructor == HTMLDivElement) ? $(params.placeHolder).html(datalet_code) :/*Injection from Web Component*/
62 $("#" + params.placeHolder).html(datalet_code);/*Injection from a static web page*/ 62 $("#" + params.placeHolder).html(datalet_code);/*Injection from a static web page*/