Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

hbsfy returns BOM character at the beginning of templated strings #18

Description

@ashwnacharya

var template_hbsfy = require('template.hbs');

// tmpl_string is the exact same string contained in template.hbs, read using $.ajax()
var template = Handlebars.compile(tmpl_string);

// obj is some object
var string1 = template_hbsfy(obj);
var string2 = template(obj);

string1 and string2 are different.

string1 contains a BOM character appended to the beginning ot the string. This is interpreted as an empty text element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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