code: def content_matchs(tag_content, content_transformer=None):
      
      def content_matchs_closure(element):
          if not element.isTag():
              return False
  
          cont = element.getContent()
          if content_transformer:
              cont = content_transformer(cont)
  
          return tag_content == cont
  
      return content_matchs_closure
docs: Generate function, which checks whether the content of the tag matchs
      `tag_content`.
  
      Args:
          tag_content (str): Content of the tag which will be matched thru whole
                             DOM.
          content_transformer (fn, default None): Function used to transform all
                              tags before matching.
  
      This function can be used as parameter for .find() method in HTMLElement.