// character "&" is the first character of a delimiter but occurred as data // unescaped ampersand error // xmlParseEntityRef: no name // multiple lines // alert works $script_1A= '<script type="text/javascript">'."\n". $javascript."\n". '</script>'."\n". '';
// character "&" is the first character of a delimiter but occurred as data // unescaped ampersand error // xmlParseEntityRef: no name // one line // alert works $script_1B= '<script type="text/javascript">'. $javascript. '</script>'. '';
// Valid XHTML 1.0 Strict // one line // alert does not work (commented out) $script_2B= '<script type="text/javascript">'. '//<![CDATA['. $javascript. '//]]>'. '</script>'. '';
2 comments
Are you instructing or showing off?
cheers this helped me!
Leave a Reply