def _get_element_text_or_none(document, selector):
element = document.cssselect(selector)<EOL>if element:<EOL><INDENT>return element[<NUM_LIT:0>].text<EOL><DEDENT>return None<EOL>
Using a CSS selector, get the element and return the text, or None if no element.

:arg document: ``HTMLElement`` document
:arg selector: CSS selector
:returns: str or None