Sep 6, 2018 · 1 min read
Apologies for the late response.
When using the approach described in this article, this behavior should not occur since content that is not rendered will not be picked up and put in the resulting static HTML
However, if this is a more general question, see below.
The best way to go about it is letting the search engines know that these labels are transactional and not part of the website’s content. This can be done by applying the correct HTML attributes and tags. Make sure that these forms are using the <form> tag and/or use role="form", use <label for=””> to link your email label to the input.
Attention to the meaning of tags and attributes in HTML will go a long way.
