Skip to content

Escaping curlies #62

@davej

Description

@davej

What is the recommended way to escape curlies within a template so that they don't get interpolated?

For example:

var template = "To access properties, surround the property with double curly braces (e.g.. {{foo}}).";
 
var result = markupJs.up(template, {});
// Desired output: -> `To access properties, surround the property with double curly braces (e.g.. {{foo}}).`

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