summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-04-27 10:09:17 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2012-04-27 10:09:17 -0400
commit550ecdb748e19888415c414e3423bb40e848c8a7 (patch)
tree68a8f2f8ca37d9fd28037eb2f83f210fbb3e4c51 /doc
parent77fd198a9e76c7d517db189f7f9e0779394a35f6 (diff)
downloadbeautifulsoup4-550ecdb748e19888415c414e3423bb40e848c8a7.tar.gz
Prep for release.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 0e049d1..4ed5c1a 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1898,7 +1898,7 @@ that you can examine it or add it back to another part of the tree.
----------
``PageElement.wrap()`` wraps an element in the tag you specify. It
-returns the new wrapper. (New in Beautiful Soup 4.0.5.)
+returns the new wrapper::
soup = BeautifulSoup("<p>I wish I was bold.</p>")
soup.p.string.wrap(soup.new_tag("b"))
@@ -1907,6 +1907,8 @@ returns the new wrapper. (New in Beautiful Soup 4.0.5.)
soup.p.wrap(soup.new_tag("div")
# <div><p><b>I wish I was bold.</b></p></div>
+This method is new in Beautiful Soup 4.0.5.
+
``unwrap()``
---------------------------
@@ -1924,6 +1926,8 @@ whatever's inside that tag. It's good for stripping out markup::
Like ``replace_with()``, ``unwrap()`` returns the tag
that was replaced.
+In earlier versions of Beautiful Soup, ``unwrap()`` was called
+``replace_with_children()`, and that name will still work.
Output
======