aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-12-18 17:19:26 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-12-18 17:19:26 +0200
commitbb988d3cc8a53a28d4134cea35279298d567c64d (patch)
tree868bdbe522a96154aa8bd6cc584ae0b41af878a3
parent30a3758751fd23a4119c8e363d704ce439274bde (diff)
downloadrspamd-bb988d3cc8a53a28d4134cea35279298d567c64d.tar.gz
rspamd-bb988d3cc8a53a28d4134cea35279298d567c64d.zip
[Minor] docs: rspamd_html: fix some copypasta
-rw-r--r--src/lua/lua_html.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index 0687d9f95..661333700 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -172,9 +172,10 @@ LUA_FUNCTION_DEF(html_tag, get_content_length);
LUA_FUNCTION_DEF(html_tag, get_style);
/***
- * @method html_tag:get_style()
- * Returns style calculated for the element
- * @return {table} table associated with the style
+ * @method html_tag:get_attribute(name)
+ * Returns value of attribute for the element
+ * Refer to `html_components_map` in `src/libserver/html/html.cxx` for recognised names
+ * @return {string|nil} value of the attribute
*/
LUA_FUNCTION_DEF(html_tag, get_attribute);