From 06f15fea89290a214346786e00e06c3b82f6a259 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 27 Apr 2012 10:09:17 -0400 Subject: Prep for release. --- doc/source/index.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/source') 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("

I wish I was bold.

") 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") #

I wish I was bold.

+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 ====== -- cgit v1.2.3