Skip to content

encoding passed variable in ejs template #1172

@bazjapan

Description

@bazjapan

When using jade to encode the variable passed I'd do something like !variable_name;

What would be the equivalent using an ejs template, I'm trying to stringyfy some data and keep getting ampersands.

<script id="info" type="object/json"><%= JSON.stringify(info) %></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions