diff options
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c index 760df52b9..880a92a3a 100644 --- a/render/html.c +++ b/render/html.c @@ -2036,6 +2036,22 @@ const char *html_get_encoding(hlcache_handle *h) } /** + * Retrieve the charset of an HTML document + * + * \param h Content to retrieve charset from + * \return Pointer to charset, or NULL + */ +binding_encoding_source html_get_encoding_source(hlcache_handle *h) +{ + struct content *c = hlcache_handle_get_content(h); + + assert(c != NULL); + assert(c->type == CONTENT_HTML); + + return c->data.html.encoding_source; +} + +/** * Retrieve framesets used in an HTML document * * \param h Content to inspect |