Untitled UI logotext
Solutions
WebsitesEcommerceMobile AppsWeb AppsProduction Support & Maintenance
Our work
Company
About usBlogPodcastContact us
Book a free consultation

How do I Escape Javascript in XHTML for Validation

Olivia Rhye

I've been doing some W3C validation lately and needed to look up how to escape javascript in documents with an XHTML transitional DTD. Here goes:


<script language="javascript" type="text/javascript">
/* <![CDATA[ */
$(document).ready(function(){
//jQuery (or other javascript) fun goes here!!
});
/* ]]> */
</script>

Ready to start a project?

Book a free consultation
Untitled UI logotext
Our work
About us
Blog
Careers
Submit a ticket
Agency Partnerships
Contact
© 2024 fjorge. All rights reserved.
Privacy