HTTP:// *Illegal content? / send an email with link to withdrawal from the post!
ZicutaKE | Search Articles

Convert text to JavaScript

Convert text to JavaScript readable

Use this to convert text into a variable

If you've ever tried to make some normal text containing characters like ' into a JavaScript variable, you will know how frustrating it can be when you miss one, or you miss a \ or a line break or a </script> tag. Well, let this script do it for you.

To see the script license and check details like browser compatibility, use the links on the navigation panel at the top of this page.

The output produced by this script should be usable in all JavaScript supporting browsers. Save on ".js" save document.write("mmmmmm"); no add text var= "mmm" .


What type of quotes do you want to use:
HTML encoding:
  • [Info]