javoire / browserify-ng-html2js

Browserify transform to compile html templates into angular template modules
MIT License
27 stars 17 forks source link

Remove the BOM from the beginning of the data #24

Closed BrianGenisio closed 9 years ago

BrianGenisio commented 9 years ago

This makes sure that the BOM (if present) doesn't make it into the template string. If it does, funny characters start showing up all over the Angular app, causing layout issues.

I'd pre-process it (using something like strip-bomify) but this transform does not use the transformed content, so it needs to happen here.

javoire commented 9 years ago

I guess there's another way around this as well. But if this fixes your problem I'm gonna go ahead and merge it, then we can potentially look at what I mentioned in #23 later