gulp-rev-mtime icon indicating copy to clipboard operation
gulp-rev-mtime copied to clipboard

single quotes get replaced with '

Open sergproua opened this issue 10 years ago • 0 comments

When run inject on html files single quotes inside property values get replaced with ' even when outside the injection tags.


gulp.task('html-apos-issue', function () {
    return gulp.src('./index-test.html')
        .pipe(revmtime())
        .pipe(rename('./index-test-out.html'))
        .pipe(gulp.dest('.'));
});


<div data-ng-include="'somewhere/something.html'"/>
becomes
<div data-ng-include="&apos;somewhere/something.html&apos;"/>

<meta lang="'something'">
becomes
<meta lang="&apos;something&apos;">

Is there an option to prevent that?

sergproua avatar Jan 31 '15 13:01 sergproua