Skip to content

Commit

Permalink
- remove only external xmp in setBlapyContainerJsonTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel committed Oct 24, 2019
1 parent 628242e commit 92213fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Blapy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
*
* -----------------------------------------------------------------------------------------
* Modifications :
* - 2019/10/22 - E.Podvin - 1.12.1
* - remove only external xmp in setBlapyContainerJsonTemplate allowing templates in xmp within templates
* - 2019/10/22 - E.Podvin - 1.12.0
* - add data-blapy-template-mustache-delimiterStart and data-blapy-template-mustache-delimiterEnd to be able to change mustache delimiters when rendering template
* - 2019/10/19 - E.Podvin - 1.11.1
Expand Down Expand Up @@ -664,7 +666,8 @@
var htmlTplContent = myContainer.html();

//remove any xmp tags (used to escape html in a template definition that could generate errors if not escaped)
htmlTplContent = htmlTplContent.replace(/(\r\n|\n|\r)?<\/?xmp[^>]*>(\r\n|\n|\r)?/gi, '');
//htmlTplContent = htmlTplContent.replace(/(\r\n|\n|\r)?<\/?xmp[^>]*>(\r\n|\n|\r)?/gi, '');
if ($(htmlTplContent).prop("tagName") == "XMP") htmlTplContent = $(htmlTplContent).html();

htmlTplContent = htmlTplContent.replace(/blapyScriptJS/gi, 'script');

Expand Down

0 comments on commit 92213fd

Please sign in to comment.