If I pass a php string to Angular JS, it gives me the following error:

Error: [$parse:lexerr] Lexer Error: Unexpected next character at columns 54-54 [#] in expression 

I am trying to pass the string into angular to show a dialog:

```
<md-button class="md-primary md-raised" ng-click="showAlert($event, '<?php echo htmlspecialchars($list['Shipment']['notes']) ;?>', 'Notes')" flex="" flex-md="100" md-theme="cyan">

```

Is there any way to get around this error?