![]() |
![]() |
![]() |
![]() |
TalkatuHtmlRenderer is an abstract class that will parse HTML and call the registered instance methods for each element allowing subclasses to render the HTML however they like.
void talkatu_html_renderer_render (TalkatuHtmlRenderer *renderer
,const gchar *html
);
Renders the given html
calling the TalkatuHtmlRendererClass functions as
necessary.
void
talkatu_html_renderer_reset (TalkatuHtmlRenderer *renderer
);
Resets renderer
back to a clean state so that it can render new HTML.
#define TALKATU_TYPE_HTML_RENDERER (talkatu_html_renderer_get_type())
The standard _get_type macro for TalkatuHtmlRenderer.
struct TalkatuHtmlRendererClass { void (*reset)(TalkatuHtmlRenderer *renderer); void (*element_start)(TalkatuHtmlRenderer *renderer, const gchar *name, const gchar **attribute_names, const gchar **attribute_values); void (*element_finish)(TalkatuHtmlRenderer *renderer, const gchar *name); void (*text)(TalkatuHtmlRenderer *renderer, const gchar *text); void (*comment)(TalkatuHtmlRenderer *renderer, const gchar *comment); };
An abstract class that will walk an HTML document and call the instance methods of the child class for each node that is found.
The method to call to reset the renderer. This allows the renderer to be reused. |
||
The method to call when an element is found. The attribute
names and values are passed in as a |
||
The method to call when all children of an element have been processed. |
||
The method to call when can text or character data is found. |
||
The method to call when a comment is found. The passed in comment is the contents only and does not contain the start () tags. |