def _parse_value(self, eles, value_scheme):
val = []<EOL>val_type = value_scheme.get('<STR_LIT:type>', None)<EOL>reg = value_scheme.get('<STR_LIT>', None)<EOL>strip = value_scheme.get('<STR_LIT>', False)<EOL>for match in eles:<EOL><INDENT>if val_type == "<STR_LIT:text>":<EOL><INDENT>val.append(unicode(match.getText()))<EOL><DEDENT>elif val_type == "<STR_LIT:content>":<EOL><INDENT>val.append(unicode(match.getText()))<EOL><DEDENT>elif val_type == "<STR_LIT>" and value_scheme.get("<STR_LIT>", None):<EOL><INDENT>attr = value_scheme['<STR_LIT>']<EOL>if attr in match.attrs:<EOL><INDENT>res = match[attr]<EOL>if isinstance(res, list):<EOL><INDENT>res = "<STR_LIT:U+0020>".join(res)<EOL><DEDENT>val.append(res)<EOL><DEDENT><DEDENT>elif val_type == "<STR_LIT:html>":<EOL><INDENT>val.append(unicode(match))<EOL><DEDENT>else:<EOL><INDENT>if self._text_maker is None:<EOL><INDENT>val.append(html2text.html2text(unicode(match)))<EOL><DEDENT>else:<EOL><INDENT>val.append(self._text_maker.handle(unicode(match)))<EOL><DEDENT><DEDENT>if strip:<EOL><INDENT>val[-<NUM_LIT:1>] = val[-<NUM_LIT:1>].strip()<EOL><DEDENT><DEDENT>if reg:<EOL><INDENT>res = []<EOL>for a in val:<EOL><INDENT>if isinstance(reg, dict):<EOL><INDENT>if reg.get('<STR_LIT:type>', None) == "<STR_LIT>":<EOL><INDENT>reg = re.compile(reg['<STR_LIT>'])<EOL><DEDENT><DEDENT>res.extend(reg.findall(a))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>res = val<EOL><DEDENT>return res<EOL>
:param eles:
:type eles: list
:param value_scheme:
:type value_scheme: dict
:return:
:rtype: list