dont index text in tag hidden

(from github.com/MajidSafari)
plz add

if tag is hidden not

text

(from github.com/marevol)
Could you provide more details?

(from github.com/cernadasjuan)
Is there a way to configure the crawler to not index hidden content (elements with classes with property display:none) for version 10.3.1?

For example, it indexed this:

<div class="asa.portlet" id="asa.portlet.Z7_814CHK41K8RQC0ABSTSS85H6I3" style="display:none;">
<span class="asa.portlet.id">Z7_814CHK41K8RQC0ABSTSS85H6I3</span>
</div>

Thanks!