@actra-development-oss/ng-i18n-aot-loader
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -33,2 +33,3 @@ /** | ||
const htmlParser = new compiler.HtmlParser(); | ||
const escape = require('escape-html'); | ||
@@ -121,3 +122,3 @@ | ||
return ast.name.match(/^i18n(-.+)?$/) ? '' : ast.name + (value.length ? '="' + value + '"' : ''); | ||
return ast.name.match(/^i18n(-.+)?$/) ? '' : ast.name + (value.length ? '="' + escape(value) + '"' : ''); | ||
} | ||
@@ -260,2 +261,2 @@ | ||
return result; | ||
}; | ||
}; |
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": { | ||
@@ -32,3 +32,4 @@ "name": "Gabriel Schuster - actra.development", | ||
"@angular/core": "4.2.5", | ||
"@angular/compiler": "4.2.5" | ||
"@angular/compiler": "4.2.5", | ||
"escape-html": "1.0.3" | ||
}, | ||
@@ -45,2 +46,2 @@ "files": [ | ||
"main": "index.js" | ||
} | ||
} |
19526
203
6
+ Addedescape-html@1.0.3
+ Addedescape-html@1.0.3(transitive)