Template parsing JavaScript comments

Hello,

I don’t know if this is a known issue, but I made the mistake of specifying an Anki field in a JavaScript comment, like this:

// Make sure {{FrontSide}} etc

This was part of a HTML script tag inside a card template. It caused a rendering bug which took Claude.ai two hours to (unsuccessfully) debug, until I restored from a backup and realized what was going on.

I suggest idiot-proofing the HTML parser, other idiots like me will probably bump into this at some point.

Thanks.

The template parser does not understand HTML/JS syntax - It simply replaces field references.