I have a php script that uses something like this. But for some reason if i have any code with ‘ symbols in it, i get php errors when loading the page. So for some reason because of this i need to move all my javascripts to where html .='' doesnt exist.
But i need this code inside my site to work. How can i get codes with ‘ symbols into here?
For example below in this code we have 'linkText' which is the issue because of ‘ << this symbol
$html .= '<input onClick="SelectAll('linkText');" id="linkText" class="sharelinkboxes" />
';
You have to escape
'characters with\: