AngularJS and HTML: Escaping quotes inside a variable for an onclick function

Viewed 11404

i'm just wondering how to escape a function if it has quotes inside. for example, my variable is:

   {{ video.Id }} = "Don't";

then if my markup in html is like this:

    <button ng-click="executeFunc('{{video.Id}}')"/>

I will have an error saying that I have unterminated quotes. (Coming from the variable that have quotes inside.) Any help would be appreciated! thank you

1 Answers
Related