Skip to content

Stringify adding &#65279 to beginning of html #53

@JasonColeyNZ

Description

@JasonColeyNZ

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';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions