3 ms·
How do you handle the problem that there might be HTML tags between "{{" and the keyword "content", or between "content" and "}}" ?
by dullboy 14y ago
How do you handle the problem that there might be HTML tags between "{{" and the keyword "content", or between "content" and "}}" ?
- jrallison 14y agoJohn at Customer.io here. When a customer attempts to save a layout, we perform several validations including verifying valid liquid templating (http://liquidmarkup.org/ 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!
- dullboy 14y agoOkay, 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...