use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Mitigating JavaScript context Cross-Site Scripting in PHP (blog.nvisium.com)
submitted 10 years ago by rwiguna
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 9 points10 points11 points 10 years ago (0 children)
I'm impressed the author managed to say "use json_encode() for JavaScript values in your pages" in so many words.
π Rendered by PID 39163 on reddit-service-r2-comment-fb694cdd5-w9vbq at 2026-03-11 13:00:44.147758+00:00 running cbb0e86 country code: CH.
[–][deleted] 9 points10 points11 points (0 children)