summaryrefslogtreecommitdiff
path: root/doc/source/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/index.rst')
-rw-r--r--doc/source/index.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f1be0c5..55dde0b 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1972,6 +1972,7 @@ If you need to add a string to a document, no problem--you can pass a
Python string in to ``append()``, or you can call the ``NavigableString``
constructor::
+ from bs4 import NavigableString
soup = BeautifulSoup("<b></b>", 'html.parser')
tag = soup.b
tag.append("Hello")