diff options
author | Leonard Richardson <leonardr@segfault.org> | 2017-05-06 14:43:41 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2017-05-06 14:43:41 -0400 |
commit | 9f811070c46bfca9868b0365b8c209bd2ca17924 (patch) | |
tree | f2235982c223a8ea2c472f0e5e23127c968513c7 /doc/source | |
parent | 13ec3c3f3010820be225094cc06862cc4b3b2944 (diff) |
Renamed convenience method to get_attribute_text.
Diffstat (limited to 'doc/source')
-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 0d13e0a..7bee329 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -428,10 +428,10 @@ consolidated:: print(rel_soup.p) # <p>Back to the <a rel="index contents">homepage</a></p> -You can use ```string_attr`` to get the value of any attribute as a +You can use ```get_attribute_text`` to get the value of any attribute as a string, whether or not it's a multi-valued atribute:: - css_soup.p.string_attr('class') + css_soup.p.get_attribute_text('class') # "body strikeout" If you parse a document as XML, there are no multi-valued attributes:: |