stringify icon indicating copy to clipboard operation
stringify copied to clipboard

Stringify adding &#65279 to beginning of html

Open JasonColeyNZ opened this issue 7 years ago • 1 comments

I modified the source to stop the 'ZERO WIDTH NO-BREAK SPACE' character from appearing at the beginning of all the html. I am using browserify and stringify together.

function stringify(content) { content = content.replace(/^\uFEFF/, ''); return 'module.exports = ' + JSON.stringify(content) + ';\n'; }

JasonColeyNZ avatar Jan 03 '18 00:01 JasonColeyNZ

Do you have a repro for this?

JohnPostlethwait avatar Apr 19 '18 09:04 JohnPostlethwait