Skip to main content

When you nest a comment, replace "--" with "- -". When you un-nest, reverse the procedure. It's not the <!-- that is forbidden but the --.

Example:

<!-- some stuff <!- - some inner stuff - -> <!- - a sibling - -> the footer --> 

When you nest a comment, replace "--" with "- -". When you un-nest, reverse the procedure. It's not the <!-- that is forbidden but the --.

When you nest a comment, replace "--" with "- -". When you un-nest, reverse the procedure. It's not the <!-- that is forbidden but the --.

Example:

<!-- some stuff <!- - some inner stuff - -> <!- - a sibling - -> the footer --> 
Source Link
Aaron Digulla
  • 330.1k
  • 111
  • 626
  • 840

When you nest a comment, replace "--" with "- -". When you un-nest, reverse the procedure. It's not the <!-- that is forbidden but the --.