You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples.rst
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ There are 3 ways to create or parse objects in Selectolax:
14
14
15
15
1. Parse HTML as a full document using ``LexborHTMLParser()``
16
16
2. Parse HTML as a fragment using ``LexborHTMLParser(..., is_fragment=True)``
17
-
3. Create single node using ``LexborHTMLParser().create_tag()``
17
+
3. Create single node using ``LexborHTMLParser(...).create_node()``
18
18
19
19
- ``LexborHTMLParser()`` - Returns the HTML tree as parsed by Lexbor, unmodified. The HTML is assumed to be a full document. ``<html>``, ``<head>``, and ``<body>`` tags are added if missing.
20
20
@@ -23,7 +23,6 @@ There are 3 ways to create or parse objects in Selectolax:
23
23
Drops ``<html>``, ``<head>``, and ``<body>`` tags if present in the input HTML.
24
24
Use it to parse snippets of HTML that are not complete documents.
25
25
26
-
- ``create_tag()`` - Create a single empty node for given tag.
27
26
28
27
.. code-block:: python
29
28
@@ -55,13 +54,13 @@ There are 3 ways to create or parse objects in Selectolax:
0 commit comments