MCPcopy Create free account
hub / github.com/JFox/aws-lambda-lxml / word_break

Function word_break

3.6.4/py27/lxml/html/clean.py:658–697  ·  view source on GitHub ↗

Breaks any long words found in the body of the text (not attributes). Doesn't effect any of the tags in avoid_elements, by default `` `` and `` `` Breaks words by inserting ​, which is a unicode character for Zero Width Space character. This generally takes

(el, max_width=40,
               avoid_elements=_avoid_word_break_elements,
               avoid_classes=_avoid_word_break_classes,
               break_character=unichr(0x200b))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

word_break_htmlFunction · 0.70

Calls 1

_break_textFunction · 0.70

Tested by

no test coverage detected