Comment

Comment by ivanca

Actually that trick creates some residual garbage (the slash and the asterisk would be printed in PHP)

A way to avoid this is to use the HTML comment notation, JavaScript just ignores it (until end of line), so just:

    <!-- <?php echo "-->";
parent ivanca 10 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton