#25 ✓resolved
Stephen Elson

glow.lang.interpolate() - Provide a system to escape data

Reported by Stephen Elson | July 17th, 2009 @ 01:43 PM | in 1.7

This could be done like:

glow.lang.interpolate(template, data, {
   escape: functionReference
})

Where all values in data are passed to function which returns the value to be inserted into the template.

glow.lang should include default escapers like escapeHtml and possibly even escapeUrl & escapeRegex.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket

Pages