diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-03 00:18:06 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-03 00:18:06 +0200 |
commit | 41206f68eb257e788a2d038e25f01d9deb7d37af (patch) | |
tree | 00aae0721a00854adbfa0630e56051c81f1559f2 /include/quickmedia | |
parent | d8132eeb7337b410a46fcf64ae0f6dacbe52cf33 (diff) |
Strip whitespace for attribute values as well
Diffstat (limited to 'include/quickmedia')
-rw-r--r-- | include/quickmedia/HtmlSearch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h index 63f2175..1a7faca 100644 --- a/include/quickmedia/HtmlSearch.h +++ b/include/quickmedia/HtmlSearch.h @@ -53,12 +53,14 @@ typedef struct { /* Returns an empty string view if attribute doesn't exist or if it doesn't have any value. The result is only valid within the callback function scope. + The result is stripped of whitespace on the left and right side. */ QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaMatchNode *self, const char *attribute_name); /* Returns an empty string if the node doesn't have any text or if there was an error creating the text. The result is only valid within the callback function scope. + The result is stripped of whitespace on the left and right side. */ QuickMediaStringView quickmedia_html_node_get_text(QuickMediaMatchNode *self); |