mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Parser.Xml: Do not print <meta> and <link> tags
This commit is contained in:
parent
633fb2979f
commit
c4a2bbcd95
@ -30,8 +30,8 @@ public class Xoa_app_ {
|
||||
}
|
||||
}
|
||||
public static final String Name = "xowa";
|
||||
public static final int Version_id = 525;
|
||||
public static final String Version = "4.5.3.1705";
|
||||
public static final int Version_id = 526;
|
||||
public static final String Version = "4.5.4.1705";
|
||||
public static String Build_date = "2012-12-30 00:00:00";
|
||||
public static String Build_date_fmt = "yyyy-MM-dd HH:mm:ss";
|
||||
public static String Op_sys_str;
|
||||
|
@ -357,6 +357,10 @@ public class Xoh_html_wtr {
|
||||
Xox_xnde xtn = xnde.Xnde_xtn();
|
||||
xtn.Xtn_write(bfr, app, ctx, this, hctx, page, xnde, src);
|
||||
break;
|
||||
// do not write <meta/> <link/>; PAGE:fr.s:La_Dispute DATE:2017-05-28
|
||||
case Xop_xnde_tag_.Tid__meta:
|
||||
case Xop_xnde_tag_.Tid__link:
|
||||
break;
|
||||
case Xop_xnde_tag_.Tid__xowa_tag_bgn:
|
||||
case Xop_xnde_tag_.Tid__xowa_tag_end:
|
||||
break;
|
||||
|
@ -143,8 +143,10 @@ public class Xop_xnde_tag_ {
|
||||
, Tid__xowa_wiki_setup = 118
|
||||
, Tid__mapframe = 119
|
||||
, Tid__maplink = 120
|
||||
, Tid__meta = 121
|
||||
, Tid__link = 122
|
||||
;
|
||||
public static final int Tid__len = 121;
|
||||
public static final int Tid__len = 123;
|
||||
public static final Xop_xnde_tag[] Ary = new Xop_xnde_tag[Tid__len];
|
||||
private static Xop_xnde_tag New(int id, String name) {
|
||||
Xop_xnde_tag rv = new Xop_xnde_tag(id, name);
|
||||
@ -273,5 +275,7 @@ public class Xop_xnde_tag_ {
|
||||
, Tag__xowa_wiki_setup = New(Tid__xowa_wiki_setup, "xowa_Wiki_setup").Xtn_()
|
||||
, Tag__mapframe = New(Tid__mapframe, "mapframe").Xtn_mw_()
|
||||
, Tag__maplink = New(Tid__maplink, "maplink").Xtn_mw_()
|
||||
, Tag__meta = New(Tid__meta, "meta")
|
||||
, Tag__link = New(Tid__link, "link")
|
||||
;
|
||||
}
|
||||
|
@ -188,4 +188,7 @@ public class Xop_xnde_wkr__err_misc_tst {
|
||||
@Test public void Invalid__percent() { // PURPOSE: invalidate xml tags with %; EX:<ref%s>; PAGE:pl.w:Scynk_nadrzewny; DATE:2016-08-07
|
||||
fxt.Test_parse_page_all_str("<b%>a</b>", "<b%>a</b>"); // NOTE: should be literally printed as <b%>, not transformed to <b>
|
||||
}
|
||||
@Test public void Meta_link() { // PURPOSE: meta and link tags should not print; EX:<meta> <link>; PAGE:fr.s:La_Dispute; DATE:2017-05-28
|
||||
fxt.Test_parse_page_all_str("<meta /><link />", "");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user