diff options
author | Leonard Richardson <leonardr@segfault.org> | 2012-11-03 13:03:40 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2012-11-03 13:03:40 -0400 |
commit | a9ac57cdea80bc41cdf4f7e094737a024adc20a3 (patch) | |
tree | 365e554f7e75f1152cd8ac9822c66caed8c262f4 /doc/source/index.rst | |
parent | e70fd66040ef86193aa4e1b1d4d34a8e724ff666 (diff) |
Doc fixes.
Diffstat (limited to 'doc/source/index.rst')
-rw-r--r-- | doc/source/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index 7a516ef..cd15b8a 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -264,7 +264,7 @@ This table summarizes the advantages and disadvantages of each parser library: | | ``BeautifulSoup(markup, "xml")`` | * The only currently supported | | | | | XML parser | | +----------------------+--------------------------------------------+--------------------------------+--------------------------+ -| html5lib | ``BeautifulSoup(markup, html5lib)`` | * Extremely lenient | * Very slow | +| html5lib | ``BeautifulSoup(markup, "html5lib")`` | * Extremely lenient | * Very slow | | | | * Parses pages the same way a | * External Python | | | | web browser does | dependency | | | | * Creates valid HTML5 | * Python 2 only | @@ -2146,7 +2146,7 @@ One last caveat: if you create a ``CData`` object, the text inside that object is always presented `exactly as it appears, with no formatting`. Beautiful Soup will call the formatter method, just in case you've written a custom method that counts all the strings in the -document or something, but it will ignore the return value. +document or something, but it will ignore the return value:: from bs4.element import CData soup = BeautifulSoup("<a></a>") |