Comments (3)
You mean the script-tags that you use in your templates? We use the js-string-escape module to manipulate the templates before putting them in the $templateCache. It's up to the maintainers of that module to add this fix, I guess. However, if more users of this plugin are experiencing similar issues, I'd be happy to include a fix for it here instead.
from gulp-angular-templatecache.
js-string-escape
guys can't implement this technically and, even more, they shouldn't.
- They return a string. In our case we actually need a string splitted in two with javascript's
+
operator. We're fighting with syntax parsing problems here and they can't return a syntactic construction. - Not all
js-string-escape
users would even want this feature as not everybody tries to embed generated string into html code (as inlined js).
The fix is actually as simple as regex substitution.
In my case I ended-up with a different solution - I just don't inline my JS code.
from gulp-angular-templatecache.
Yeah, I think you should avoid inlining the JS anyway. I'll reopen this if more developers request something similar.
from gulp-angular-templatecache.
Related Issues (20)
- Template Body readme instructions result in incorrect string escaping
- Make concatenation an option HOT 1
- Angular Arguments HOT 1
- Crash with a cryptic error message when a folder container a dot HOT 9
- EPERM: operation not permitted HOT 1
- Don't use a logical or for setting header and footer. HOT 9
- Replace deprecated dependency gulp-util
- Remove deprecated gulp-util by updating gulp-header & gulp-footer HOT 3
- Question: Is it possible to make template urls relative? HOT 8
- Sort output by URI HOT 1
- Fix Security Vulnerabilities HOT 1
- Use ES2015 HOT 4
- Minification is stripping the basic IIFE wrapper from the cached templates HOT 4
- Leading slash added to filenames under gulp 4 HOT 18
- Security Issue: Removing dependency `event-stream` HOT 2
- Error: ENOENT: no such file or directory, open 'target/tmp/templates.js' HOT 1
- Buffer() is deprecated due to security issues.
- Update to NodeJS 8
- npm ERR! Unexpected end of JSON input while parsing near '...0.2"},"dist":{"shasum' HOT 1
- Prototype Pollution security vulnerability HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-angular-templatecache.