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 %}")
For example:
vs.