Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to escape {{ }} inside CSS and JS files?
Member
Aug 8, 2018 12:34 AM
I've included a JS vendors file that uses {{ }} brackets to regex search. This is the exact code:
e.replace(/{{(width|height)}}/g,t);
But the problem is that they are being removed by HUBL after the file is loaded on the front-end.
What is the best way to escape those lines? Normally in coding, we use backslash for escaping purpose but it's not working for HUBL:
e.g., \{\{
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content