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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -