Grunt include-replace string unexpexted token error / special characters in string

244 Views Asked by At

When I'm adding a string to the grunt-include-replace includes like shown below, I get an 'unexpected token error' in the console and the html file doesn't compile.

@@include('components/navigation.html', {
  "list-elements": "<li><a href="#">home</a></li>"
})

I think there are problems with the special characters <>/#".

How can I make those characters work in the string?

0

There are 0 best solutions below