Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pastureofplenty
51 days ago
|
parent
|
context
|
favorite
| on:
How to safely escape JSON inside HTML SCRIPT eleme...
This reminded me of how in the early 2000s I was taught to enclose the content of SCRIPT tags in HTML comments, e.g.
<script language="JavaScript"><!-- // script contents --> </script>
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: