aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-08-01 16:56:40 +0200
committerdec05eba <dec05eba@protonmail.com>2023-08-01 16:56:40 +0200
commit0eb546dfc74080e4cd00772dafb0aa2a46bc4153 (patch)
tree4fe54e325f35fe6c1b77e8548a7ce1ea16f485ef /include/quickmedia
parent3e01d0dc158358d091bdee0ddf90b0f0562e1c89 (diff)
Add quickmedia_html_node_find_child
Diffstat (limited to 'include/quickmedia')
-rw-r--r--include/quickmedia/HtmlSearch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h
index e2b0ecc..8ce7ff4 100644
--- a/include/quickmedia/HtmlSearch.h
+++ b/include/quickmedia/HtmlSearch.h
@@ -58,6 +58,14 @@ typedef struct {
QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaHtmlNode *self, const char *attribute_name);
/*
+ Returns NULL if not found.
+ The result is only valid within the callback function scope.
+ This function is not recursive.
+ Case insensitive search.
+*/
+QuickMediaHtmlNode* quickmedia_html_node_find_child(QuickMediaHtmlNode *self, const char *tag_name, const char *attribute_name, const char *attribute_value);
+
+/*
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.