Hacker Newsnew | past | comments | ask | show | jobs | submit | dullboy's commentslogin

This guy just updates his list of watched TV series. Great contribution to Open Source!



How do you handle the problem that there might be HTML tags between "{{" and the keyword "content", or between "content" and "}}" ?


John at Customer.io here.

When a customer attempts to save a layout, we perform several validations including verifying valid liquid templating (http://liquidmarkup.org/) syntax and the presence of the "content" liquid tag.

If there are HTML tags between the "{{"'s, we'll present a user friendly error message.

Cheers!


Okay, thanks for the reply.

I myself had done the same thing for some clients.

The clients were quite confused when they saw the error message after pasting text from some external rich text editor that littered everything with <span>s.

I wonder if there is a better way...


I would gladly crowdsource this task...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: