ApocalypticMC / ebattles

Automatically exported from code.google.com/p/ebattles
0 stars 0 forks source link

Use single quote for html, and double quotes for javascripts #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
As a coding rule, I'd prefer to use single quote for html, and double quotes 
for javascripts.

Original issue reported on code.google.com by frederic...@gmail.com on 6 Sep 2009 at 7:16

GoogleCodeExporter commented 8 years ago
Examples:
- HTML output:
$text = '<a href="http://www.ebattles.com">eBattles</a>';

- Javascript output:
$text = '<script type="text/javascript">';
$text = "
    <!--//
    function changetext(v)
    {
    document.getElementById('eb_avatar_default_image').value=v;
    }
    //-->
    ";
 $text = '</script>';

Original comment by frederic...@gmail.com on 13 Nov 2009 at 8:17