Created
August 21, 2017 07:24
-
-
Save emrahoruc/f7aefbf947a9b04bcf08549f5ee3f7cd to your computer and use it in GitHub Desktop.
json in the HTML attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div data-secret="<?= htmlspecialchars(json_encode($data), ENT_QUOTES, 'UTF-8') ?>"> | |
| Look at inside me! | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment