diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-08 11:05:06 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-08 11:05:06 -0500 |
commit | 9de446f5bbe5d740db6160389c563bc1136d6335 (patch) | |
tree | 1638265ef0e8b4c4f908ce1f86bccbbd1430120d | |
parent | 0316080c39dd72396232a5da69813b946ba6d6c1 (diff) |
Minor doc updates.
-rw-r--r-- | bs4/doc/source/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/doc/source/index.rst b/bs4/doc/source/index.rst index 1adbabc..d610c47 100644 --- a/bs4/doc/source/index.rst +++ b/bs4/doc/source/index.rst @@ -1720,7 +1720,7 @@ If you give Beautiful Soup a document that contains HTML entities like # u'<html><head></head><body>\u201cHello,\u201d he said.</body></html>' If you then convert the document to a string, the Unicode characters -will be encoded as UTF-8. You won't get the HTML entities back: +will be encoded as UTF-8. You won't get the HTML entities back:: str(soup) # '<html><head></head><body>\xe2\x80\x9cHello,\xe2\x80\x9d he said.</body></html>' @@ -1804,7 +1804,7 @@ implements Beautiful Soup's standard formatters as class methods: the use these functions to simulate ``formatter=html`` or ``formatter==minimal`` but and then do something in addition. -Here's an example that converts strings to uppercase, ``and`` replaces +Here's an example that converts strings to uppercase, `and` replaces Unicode characters with HTML entities whenever possible:: from bs4.dammit import EntitySubstitution |