zpin-templates
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -497,3 +497,3 @@ 'use strict'; | ||
// console.log($('rt-html').eq(htmlNodeIndex).html,htmlNodeIndex) | ||
var innerHtml = $('rt-html').eq(htmlNodeIndex++).html().replace(/[\r\n]/g, '').trim(); | ||
var innerHtml = $('rt-html').eq(htmlNodeIndex++).html().replace(/[\r\n]/g, '').replace(/[']/g, '\\\'').trim(); | ||
// console.log(node,innerHtml) | ||
@@ -500,0 +500,0 @@ data.body = '[React.createElement(\'div\',{dangerouslySetInnerHTML:{__html:\'' + innerHtml + '\'}})]'; |
{ | ||
"name": "zpin-templates", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Light weight templates for react -> write html get valid react code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -511,3 +511,6 @@ 'use strict'; | ||
// console.log($('rt-html').eq(htmlNodeIndex).html,htmlNodeIndex) | ||
let innerHtml=$('rt-html').eq(htmlNodeIndex++).html().replace(/[\r\n]/g,'').trim(); | ||
let innerHtml=$('rt-html').eq(htmlNodeIndex++).html() | ||
.replace(/[\r\n]/g,'') | ||
.replace(/[']/g,'\\\'') | ||
.trim(); | ||
// console.log(node,innerHtml) | ||
@@ -514,0 +517,0 @@ data.body = `[React.createElement('div',{dangerouslySetInnerHTML:{__html:'${innerHtml}'}})]`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
279390
3748