MCPcopy Create free account
hub / github.com/gawel/pyquery / __html__

Method __html__

pyquery/pyquery.py:363–373  ·  view source on GitHub ↗

html representation of current nodes:: >>> html = PyQuery( ... ' <![[CDATA[ ]> ', parser='html_fragments') >>> print(html.__html__()) <![[CDATA[ ]>

(self)

Source from the content-addressed store, hash-verified

361 for e in self])
362
363 def __html__(self):
364 """html representation of current nodes::
365
366 >>> html = PyQuery(
367 ... '<script><![[CDATA[ ]></script>', parser='html_fragments')
368 >>> print(html.__html__())
369 <script><![[CDATA[ ]></script>
370
371 """
372 return u''.join([lxml.html.tostring(e, encoding=str)
373 for e in self])
374
375 def __repr__(self):
376 r = []

Callers 2

test_replaceWithMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by 2

test_replaceWithMethod · 0.64