From 41206f68eb257e788a2d038e25f01d9deb7d37af Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Jul 2021 00:18:06 +0200 Subject: Strip whitespace for attribute values as well --- include/quickmedia/HtmlSearch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/quickmedia/HtmlSearch.h') 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); -- cgit v1.2.3