parameters: (self, context, *args)
return_statement: return ''
docstring: Take a HTML string and convert it to an HTML element. Then apply a filter and return
          that value.
          return filter value as a string
          return an empty sting if the filter failed to find any values.
docstring_summary: Take a HTML string and convert it to an HTML element. Then apply a filter and return
          that value.
          return filter value as a string
          return an empty sting if the filter failed to find any values.
docstring_tokens: Take a HTML string and convert it to an HTML element . Then apply a filter and return that value . return filter value as a string return an empty sting if the filter failed to find any values .
function: def getHtmlData(self, context, *args):
          ''' Take a HTML string and convert it to an HTML element. Then apply a filter and return
          that value.
          return filter value as a string
          return an empty sting if the filter failed to find any values.
          '''
          xpathFilter = None
          if len(args) > 1:
              xpathFilter = args[0]
              htmldata = args[1]
          else:
              htmldata = args[0]
          htmlElement = etree.HTML(htmldata)
          if not xpathFilter:
              return htmlElement
          filteredData = htmlElement.xpath(xpathFilter)
          if len(filteredData):
              if xpathFilter.find('@') != -1:
                  return filteredData[0]
              else:
                  return filteredData[0].text
          return ''
function_tokens: def getHtmlData ( self , context , * args ) : xpathFilter = None if len ( args ) > 1 : xpathFilter = args [ 0 ] htmldata = args [ 1 ] else : htmldata = args [ 0 ] htmlElement = etree . HTML ( htmldata ) if not xpathFilter : return htmlElement filteredData = htmlElement . xpath ( xpathFilter ) if len ( filteredData ) : if xpathFilter . find ( '@' ) != - 1 : return filteredData [ 0 ] else : return filteredData [ 0 ] . text return ''