From: Andrew Lewis Date: Mon, 18 Dec 2023 15:19:26 +0000 (+0200) Subject: [Minor] docs: rspamd_html: fix some copypasta X-Git-Tag: 3.8.0~24^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4750%2Fhead;p=rspamd.git [Minor] docs: rspamd_html: fix some copypasta --- 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);