html - unterminated string literal when I click on anchor tag -


when click on tag getting below error

unterminated string literal

<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud  here - banner’);" href="about.php" class="red-text block">read more</a>

in last parameter string, have backtick instead of single quote

'cloud here - banner’ <- see string ending literal

enter image description here

just use 'cloud here - banner'

function ga() {    }
<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud  here - banner');" href="#" class="red-text block">read more</a>


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -