Skip to content

Commit

Permalink
Merge pull request #212 from liquancss/master
Browse files Browse the repository at this point in the history
this update fix the problem that an exception raised when calling PyQuery("<textarea></textarea>").text()
  • Loading branch information
gawel committed Nov 18, 2020
2 parents 49ebccf + f6fc6d2 commit 6e46c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquery/pyquery.py
Expand Up @@ -1064,7 +1064,7 @@ def html(self, value=no_default, **kwargs):
tag = self[0]
children = tag.getchildren()
if not children:
return tag.text
return tag.text or ''
html = tag.text or ''
if 'encoding' not in kwargs:
kwargs['encoding'] = str
Expand Down

0 comments on commit 6e46c7f

Please sign in to comment.