Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Widgetize/templates/widgetize.js')
-rw-r--r--plugins/Widgetize/templates/widgetize.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Widgetize/templates/widgetize.js b/plugins/Widgetize/templates/widgetize.js
index 3f30806ff1..e6d79daa97 100644
--- a/plugins/Widgetize/templates/widgetize.js
+++ b/plugins/Widgetize/templates/widgetize.js
@@ -4,12 +4,12 @@ function widgetize()
this.getInputFormWithHtml = function(inputId, htmlEmbed)
{
- return '<input class="formEmbedCode" id="'+inputId+'" value=\''+ htmlEmbed +'\' onclick="javascript:document.getElementById(\''+inputId+'\').focus();document.getElementById(\''+inputId+'\').select();" readonly="true" type="text">';
+ return '<input class="formEmbedCode" id="'+inputId+'" value="'+ htmlEmbed.replace(/"/g, '&quot;') +'" onclick="javascript:document.getElementById(\''+inputId+'\').focus();document.getElementById(\''+inputId+'\').select();" readonly="true" type="text">';
}
this.getEmbedUrl = function( parameters, exportFormat )
{
- copyParameters = new Object;
+ copyParameters = new Object();
for(var variableName in parameters) {
copyParameters[variableName] = parameters[variableName];
}