commit bb988d3: [Minor] docs: rspamd_html: fix some copypasta
Andrew Lewis
nerf at judo.za.org
Mon Jul 29 17:50:37 UTC 2024
Author: Andrew Lewis
Date: 2023-12-18 17:19:26 +0200
URL: https://github.com/rspamd/rspamd/commit/bb988d3cc8a53a28d4134cea35279298d567c64d (refs/pull/4750/head)
[Minor] docs: rspamd_html: fix some copypasta
---
src/lua/lua_html.cxx | 7 ++++---
1 file 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);
More information about the Commits
mailing list