Skip to content

Shopify Liquid allows for HTML encoded quotes where this package does not #197

@allenap

Description

@allenap

For example:

from liquid import parse

# ' is the HTML entity for a single quote.
# This arises naturally in HTML files where Liquid tags appear inside
# HTML attribute values that have been entity-encoded by a renderer
# (e.g. React Email).
template = """{% if x == 'foo' %}bar{% endif %}"""

parse(template)  # --> exception

vs.

require "liquid"
Liquid::Template.parse("{% if x == 'foo' %}bar{% endif %}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions