#include "chxj_qr_code.h"
#include "chxj_cookie.h"
#include "chxj_encoding.h"
+#include "chxj_str_util.h"
#include "chxj_buffered_write.h"
#define GET_CHTML10(X) ((chtml10_t*)(X))
#define W10_V(X) do { chtml10->out = (X) ? BUFFERED_WRITE_VALUE(chtml10->out, &doc->buf, (X)) \
: BUFFERED_WRITE_LITERAL(chtml10->out, &doc->buf, ""); } while(0)
-static char* s_chtml10_start_html_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_html_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_meta_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_meta_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_textarea_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_textarea_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_p_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_p_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_pre_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_pre_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_ul_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_ul_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_li_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_li_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_ol_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_ol_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h1_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h1_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h2_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h2_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h3_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h3_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h4_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h4_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h5_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h5_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_h6_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_h6_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_head_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_head_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_title_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_title_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_base_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_base_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_body_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_body_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_a_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_a_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_br_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_br_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_tr_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_tr_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_font_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_font_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_input_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_input_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_form_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_form_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_center_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_center_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_hr_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_hr_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_img_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_img_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_select_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_select_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_option_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_option_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_div_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_div_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_blockquote_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_blockquote_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_dir_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_dir_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_dl_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_dl_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_dt_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_dt_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_dd_tag (void* pdoc, Node* node);
-static char* s_chtml10_end_dd_tag (void* pdoc, Node* node);
-static char* s_chtml10_start_menu_tag (void *pdoc, Node *node);
-static char* s_chtml10_end_menu_tag (void *pdoc, Node *node);
-
-static void s_init_chtml10(chtml10_t* chtml, Doc* doc, request_rec* r, device_table* spec);
-
-static int s_chtml10_search_emoji(chtml10_t* chtml, char* txt, char** rslt);
-static char* s_chtml10_chxjif_tag (void* pdoc, Node* node);
-static char* s_chtml10_text (void* pdoc, Node* node);
+static char *s_chtml10_start_html_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_html_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_meta_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_meta_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_textarea_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_textarea_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_p_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_p_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_pre_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_pre_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_ul_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_ul_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_li_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_li_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_ol_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_ol_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h1_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h1_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h2_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h2_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h3_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h3_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h4_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h4_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h5_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h5_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_h6_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_h6_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_head_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_head_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_title_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_title_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_base_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_base_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_body_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_body_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_a_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_a_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_br_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_br_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_tr_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_tr_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_font_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_font_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_input_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_input_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_form_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_form_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_center_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_center_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_hr_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_hr_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_img_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_img_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_select_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_select_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_option_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_option_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_div_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_div_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_blockquote_tag(void *pdoc, Node *node);
+static char *s_chtml10_end_blockquote_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dir_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dir_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dl_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dl_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dt_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dt_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_dd_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_dd_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_menu_tag (void *pdoc, Node *node);
+static char *s_chtml10_end_menu_tag (void *pdoc, Node *node);
+static char *s_chtml10_start_plaintext_tag(void *pdoc, Node *node);
+static char *s_chtml10_start_plaintext_tag_inner(void *pdoc, Node *node);
+static char *s_chtml10_end_plaintext_tag (void *pdoc, Node *node);
+
+static void s_init_chtml10(chtml10_t *chtml, Doc *doc, request_rec *r, device_table *spec);
+
+static int s_chtml10_search_emoji(chtml10_t *chtml, char *txt, char **rslt);
+static char *s_chtml10_chxjif_tag (void *pdoc, Node *node);
+static char *s_chtml10_text (void *pdoc, Node *node);
tag_handler chtml10_handler[] = {
/* tagHTML */
s_chtml10_start_menu_tag,
s_chtml10_end_menu_tag,
},
+ /* tagPLAINTEXT */
+ {
+ s_chtml10_start_plaintext_tag,
+ s_chtml10_end_plaintext_tag,
+ },
+ /* tagBLINK */
+ {
+ NULL,
+ NULL,
+ },
+ /* tagMARQUEE */
+ {
+ NULL,
+ NULL,
+ },
};
* @param src [i] The character string before the converting is appointed.
* @return The character string after the converting is returned.
*/
-char*
+char *
chxj_exchange_chtml10(
- request_rec* r,
- device_table* spec,
- const char* src,
+ request_rec *r,
+ device_table *spec,
+ const char *src,
apr_size_t srclen,
- apr_size_t* dstlen,
- chxjconvrule_entry* entryp,
+ apr_size_t *dstlen,
+ chxjconvrule_entry *entryp,
cookie_t* cookie
)
{
- char* dst;
- char* ss;
+ char *dst;
+ char *ss;
chtml10_t chtml10;
Doc doc;
apr_time_t t;
chxj_dump_out("[dst] CHTML -> CHTML1.0", dst, *dstlen);
#endif
- DBG(r, "end chxj_exchange_chtml10() cookie_id=[%s] time=[%lld]", (cookie) ? cookie->cookie_id : "", apr_time_now() - t);
+ DBG(r, "end chxj_exchange_chtml10() cookie_id=[%s] time=[%" APR_INT64_T_FMT "]", (cookie) ? cookie->cookie_id : "", apr_time_now() - t);
return dst;
}
*/
static void
s_init_chtml10(
- chtml10_t* chtml10,
- Doc* doc,
- request_rec* r,
- device_table* spec)
+ chtml10_t *chtml10,
+ Doc *doc,
+ request_rec *r,
+ device_table *spec)
{
memset(doc, 0, sizeof(Doc));
memset(chtml10, 0, sizeof(chtml10_t));
* @return When corresponding EMOJI exists, it returns it excluding 0.
*/
static int
-s_chtml10_search_emoji(chtml10_t* chtml10, char* txt, char** rslt)
+s_chtml10_search_emoji(chtml10_t *chtml10, char *txt, char **rslt)
{
- emoji_t* ee;
- request_rec* r;
- device_table* spec;
+ emoji_t *ee;
+ request_rec *r;
+ device_table *spec;
int len;
spec = chtml10->spec;
* @param node [i] The HTML tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_html_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_html_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The HTML tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_html_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_html_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
* @param node [i] The META tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_meta_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_meta_tag(void *pdoc, Node *UNUSED(node))
{
- chtml10_t* chtml10;
-
- chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
/* ignore */
* @param node [i] The META tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_meta_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_meta_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
-
- chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
* @param node [i] The HEAD tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_head_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_head_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The HEAD tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_head_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_head_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The OL tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_ol_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_ol_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The OL tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_ol_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_ol_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The UL tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_ul_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_ul_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("<ul>\r\n");
+ W10_L("<ul>");
return chtml10->out;
}
* @param node [i] The UL tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_ul_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_ul_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("</ul>\r\n");
+ W10_L("</ul>");
return chtml10->out;
}
* @param node [i] The LI tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_li_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_li_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The LI tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_li_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_li_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
- chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
* @param node [i] The H1 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_h1_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_h1_tag(void *pdoc, Node *node)
{
- Doc* doc;
- request_rec* r;
- Attr* attr;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ Attr *attr;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
- char* value;
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('a','A',"align", name)) {
if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('c','C',"center",value))) {
W10_L(" align=\"");
* @param node [i] The H1 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h1_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h1_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The H2 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
+static char *
s_chtml10_start_h2_tag(void *pdoc, Node *node)
{
Doc *doc;
* @param node [i] The H2 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h2_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h2_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
- char* value;
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('a','A',"align", name)) {
if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('c','C',"center",value))) {
W10_L(" align=\"");
* @param node [i] The H3 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h3_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h3_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The H4 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h4_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h4_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
static char *
s_chtml10_start_h5_tag(void *pdoc, Node *node)
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
chtml10_t *chtml10;
Attr *attr;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
- char* value;
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('a','A',"align", name)) {
if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('c','C',"center",value))) {
W10_L(" align=\"");
* @param node [i] The H5 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h5_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h5_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
- char* value;
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('a','A',"align", name)) {
if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('c','C',"center",value))) {
W10_L(" align=\"");
static char *
s_chtml10_end_h6_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The TITLE tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_title_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_title_tag(void *pdoc, Node *UNUSED(node))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The TITLE tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_title_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_title_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The BASE tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_base_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_base_tag(void *pdoc, Node *node)
{
- Attr* attr;
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
+ Attr *attr;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
- char* value;
-
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('h','H',"href", name)) {
W10_L(" href=\"");
W10_V(value);
* @param node [i] The BASE tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_base_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_base_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
* @param node [i] The BODY tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_body_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_body_tag(void *pdoc, Node *node)
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
- Attr* attr;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+ Attr *attr;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
attr;
attr = qs_get_next_attr(doc,attr)) {
- char* name;
-
- name = qs_get_attr_name(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
switch(*name) {
case 'a':
case 'A':
* @param node [i] The BODY tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_body_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_body_tag(void *pdoc, Node *UNUSED(child))
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char *name;
- char *value;
-
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
switch(*name) {
case 'n':
case 'N':
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char *name;
- char *value;
-
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('c','C',"clear",name)) {
if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('a','A',"all",value))) {
W10_L(" clear=\"");
Doc *doc;
request_rec *r;
Attr *attr;
+ char *new_hidden_tag = NULL;
+ char *attr_value = NULL;
+ char *attr_method = NULL;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("<form");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char *name;
- char *value;
-
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
switch(*name) {
case 'a':
case 'A':
/*--------------------------------------------------------------------*/
/* CHTML 1.0 */
/*--------------------------------------------------------------------*/
- value = chxj_encoding_parameter(r, value);
- value = chxj_add_cookie_parameter(r, value, chtml10->cookie);
-
- W10_L(" action=\"");
- W10_V(value);
- W10_L("\"");
+ attr_value = chxj_encoding_parameter(r, value);
+ attr_value = chxj_add_cookie_parameter(r, attr_value, chtml10->cookie);
}
break;
/*--------------------------------------------------------------------*/
/* CHTML 1.0 */
/*--------------------------------------------------------------------*/
- W10_L(" method=\"");
- W10_V(value);
- W10_L("\"");
+ attr_method = apr_pstrdup(doc->pool, value);
}
break;
}
}
+ int post_flag = (attr_method && strcasecmp(attr_method, "post") == 0) ? 1 : 0;
+
+ W10_L("<form");
+ if (attr_value) {
+ char *q;
+ q = strchr(attr_value, '?');
+ if (q) {
+ new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_value, 0, post_flag);
+ if (new_hidden_tag) {
+ *q = 0;
+ }
+ }
+ W10_L(" action=\"");
+ W10_V(attr_value);
+ W10_L("\"");
+ }
+ if (attr_method) {
+ W10_L(" method=\"");
+ W10_V(attr_method);
+ W10_L("\"");
+ }
W10_L(">");
+ if (new_hidden_tag) {
+ W10_V(new_hidden_tag);
+ }
return chtml10->out;
}
* @param node [i] The FORM tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_form_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_form_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The INPUT tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_input_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_input_tag(void *pdoc, Node *node)
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
- char* max_length;
- char* type;
- char* name;
- char* value;
- char* istyle;
- char* size;
- char* checked;
- char* accesskey;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+ char *max_length;
+ char *type;
+ char *name;
+ char *value;
+ char *istyle;
+ char *size;
+ char *checked;
+ char *accesskey;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
if (value && *value != 0) {
W10_L(" value=\"");
- W10_V(value);
+ W10_V(chxj_add_slash_to_doublequote(doc->pool,value));
W10_L("\"");
}
* @param node [i] The INPUT tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_input_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_input_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
* @param node [i] The CENTER tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_center_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_center_tag(void *pdoc, Node *UNUSED(node))
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The CENTER tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_center_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_center_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
* @param node [i] The HR tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_hr_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_hr_tag(void *pdoc, Node *node)
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
- Attr* attr;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+ Attr *attr;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char* name;
- char* value;
-
- name = qs_get_attr_name (doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name (doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
switch(*name) {
case 'a':
case 'A':
* @param node [i] The HR tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_hr_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_hr_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t* chtml10;
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
- chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
* @param node [i] The IMG tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_img_tag(void* pdoc, Node* node)
+static char *
+s_chtml10_start_img_tag(void *pdoc, Node *node)
{
- chtml10_t* chtml10;
- Doc* doc;
- request_rec* r;
- Attr* attr;
+ chtml10_t *chtml10;
+ Doc *doc;
+ request_rec *r;
+ Attr *attr;
#ifndef IMG_NOT_CONVERT_FILENAME
device_table *spec;
#endif
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char* name;
- char* value;
-
- name = qs_get_attr_name (doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name (doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
switch(*name) {
case 's':
case 'S':
static char *
s_chtml10_end_img_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t *chtml10;
-
- chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
return chtml10->out;
}
for (attr = qs_get_attr(doc,child);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char *nm;
- char *val;
-
- nm = qs_get_attr_name (doc,attr);
- val = qs_get_attr_value(doc,attr);
-
+ char *nm = qs_get_attr_name (doc,attr);
+ char *val = qs_get_attr_value(doc,attr);
switch(*nm) {
case 's':
case 'S':
}
}
- if (size) {
+ if (size && *size != 0) {
W10_L(" size=\"");
W10_V(size);
W10_L("\"");
}
- if (name) {
+ if (name && *name != 0) {
W10_L(" name=\"");
W10_V(name);
W10_L("\"");
}
- W10_L(">\r\n");
+ W10_L(">");
return chtml10->out;
}
static char *
s_chtml10_end_select_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t *chtml10;
- Doc *doc;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("</select>\r\n");
+ W10_L("</select>");
return chtml10->out;
}
static char *
s_chtml10_start_option_tag(void *pdoc, Node *child)
{
- chtml10_t *chtml10;
- Doc *doc;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
- Attr *attr;
-
- char *selected;
- char *value;
+ Attr *attr;
+ char *selected;
+ char *value;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
for (attr = qs_get_attr(doc,child);
attr;
attr = qs_get_next_attr(doc,attr)) {
- char *nm;
- char *val;
-
- nm = qs_get_attr_name (doc,attr);
- val = qs_get_attr_value(doc,attr);
-
+ char *nm = qs_get_attr_name (doc,attr);
+ char *val = qs_get_attr_value(doc,attr);
switch(*nm) {
case 's':
case 'S':
static char *
s_chtml10_end_option_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t *chtml10;
-
- chtml10 = GET_CHTML10(pdoc);
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
/* Don't close */
static char *
s_chtml10_start_div_tag(void *pdoc, Node *child)
{
- chtml10_t *chtml10;
- Doc *doc;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
- Attr *attr;
-
- char *align;
+ Attr *attr;
+ char *align;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
align = NULL;
W10_L("<div");
-
for (attr = qs_get_attr(doc,child);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char *nm;
- char *val;
-
- nm = qs_get_attr_name(doc,attr);
- val = qs_get_attr_value(doc,attr);
-
+ char *nm = qs_get_attr_name(doc,attr);
+ char *val = qs_get_attr_value(doc,attr);
if (STRCASEEQ('a','A',"align", nm)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 (W3C version 3.2) */
static char *
s_chtml10_end_div_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t *chtml10;
- Doc *doc;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
chtml10 = GET_CHTML10(pdoc);
static char *
s_chtml10_chxjif_tag(void *pdoc, Node *node)
{
- chtml10_t *chtml10;
- Doc *doc;
- Node *child;
+ chtml10_t *chtml10;
+ Doc *doc;
+ Node *child;
request_rec *r;
chtml10 = GET_CHTML10(pdoc);
static char *
s_chtml10_start_pre_tag(void *pdoc, Node *UNUSED(node))
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
- chtml10_t *chtml10;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
static char *
s_chtml10_end_pre_tag(void *pdoc, Node *UNUSED(child))
{
- chtml10_t *chtml10;
- Doc *doc;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
chtml10 = GET_CHTML10(pdoc);
static char *
s_chtml10_start_p_tag(void *pdoc, Node *node)
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
- chtml10_t *chtml10;
- Attr *attr;
- char *align = NULL;
+ chtml10_t *chtml10;
+ Attr *attr;
+ char *align = NULL;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
static char *
s_chtml10_end_p_tag(void *pdoc, Node *UNUSED(child))
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
- chtml10_t *chtml10;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
static char *
s_chtml10_start_textarea_tag(void *pdoc, Node *node)
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
- chtml10_t *chtml10;
- Attr *attr;
+ chtml10_t *chtml10;
+ Attr *attr;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
chtml10->textarea_flag++;
- W10_L("<textarea ");
+ W10_L("<textarea");
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char *name;
- char *value;
-
- name = qs_get_attr_name (doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name (doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
switch(*name) {
+ case 'a':
+ case 'A':
+ if (strcasecmp(name, "accesskey") == 0 && value && *value != 0) {
+ W10_L(" accesskey=\"");
+ W10_V(value);
+ W10_L("\"");
+ }
+ break;
+
case 'n':
case 'N':
- if (strcasecmp(name, "name") == 0) {
+ if (strcasecmp(name, "name") == 0 && value && *value != 0) {
W10_L(" name=\"");
W10_V(value);
W10_L("\"");
case 'r':
case 'R':
- if (strcasecmp(name, "rows") == 0) {
+ if (strcasecmp(name, "rows") == 0 && value && *value != 0) {
W10_L(" rows=\"");
W10_V(value);
W10_L("\"");
case 'c':
case 'C':
- if (strcasecmp(name, "cols") == 0) {
+ if (strcasecmp(name, "cols") == 0 && value && *value != 0) {
W10_L(" cols=\"");
W10_V(value);
W10_L("\"");
break;
}
}
-
- W10_L(">\r\n");
+ W10_L(">");
return chtml10->out;
}
static char *
s_chtml10_end_textarea_tag(void *pdoc, Node *UNUSED(child))
{
- Doc *doc;
+ Doc *doc;
request_rec *r;
- chtml10_t *chtml10;
+ chtml10_t *chtml10;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("</textarea>\r\n");
+ W10_L("</textarea>");
chtml10->textarea_flag--;
return chtml10->out;
static char *
s_chtml10_text(void *pdoc, Node *child)
{
- char *textval;
- char *tmp;
- char *tdst;
- char one_byte[2];
- int ii;
- int tdst_len;
- chtml10_t *chtml10;
- Doc *doc;
+ char *textval;
+ char *tmp;
+ char *tdst;
+ char one_byte[2];
+ int ii;
+ int tdst_len;
+ chtml10_t *chtml10;
+ Doc *doc;
request_rec *r;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
-
- textval = qs_get_node_value(doc,child);
- textval = qs_trim_string(doc->buf.pool, textval);
- if (strlen(textval) == 0)
+ textval = qs_get_node_value(doc,child);
+ if (strlen(textval) == 0) {
return chtml10->out;
+ }
tmp = apr_palloc(r->pool, qs_get_node_size(doc,child)+1);
memset(tmp, 0, qs_get_node_size(doc,child)+1);
tdst_len = 0;
for (ii=0; ii<qs_get_node_size(doc,child); ii++) {
- char* out;
+ char *out;
int rtn;
rtn = s_chtml10_search_emoji(chtml10, &textval[ii], &out);
W10_L("</menu>");
return chtml10->out;
}
+
+
+/**
+ * It is a hanplaintexter who processes the PLAINTEXT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The PLAINTEXT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_start_plaintext_tag(void *pdoc, Node *node)
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ W10_L("<plaintext>");
+ s_chtml10_start_plaintext_tag_inner(pdoc,node);
+ return chtml10->out;
+}
+
+static char *
+s_chtml10_start_plaintext_tag_inner(void *pdoc, Node *node)
+{
+ chtml10_t *chtml10;
+ Doc *doc;
+ Node *child;
+ chtml10 = GET_CHTML10(pdoc);
+ doc = chtml10->doc;
+ for (child = qs_get_child_node(doc, node);
+ child;
+ child = qs_get_next_node(doc, child)) {
+ W10_V(child->otext);
+ s_chtml10_start_plaintext_tag_inner(pdoc, child);
+ }
+ return chtml10->out;
+}
+
+
+/**
+ * It is a hanplaintexter who processes the PLAINTEXT tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The PLAINTEXT tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml10_end_plaintext_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml10_t *chtml10 = GET_CHTML10(pdoc);
+ return chtml10->out;
+}
/*
* vim:ts=2 et
*/