From bb988d3cc8a53a28d4134cea35279298d567c64d Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 18 Dec 2023 17:19:26 +0200 Subject: [PATCH] [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); -- 2.39.5