How to Escape Single Quotes for JavaScript in PHP
For example, if you have a button in PHP code like this: ... return "<button onclick='get_name("$id", "$title")'>Post</button>"; ... It will work well except the following… Read More »How to Escape Single Quotes for JavaScript in PHP