basic html special lookups seem to be working

This commit is contained in:
anon 2023-11-17 03:56:45 +01:00
parent 0d037a7b36
commit 806a7c4188
8 changed files with 297 additions and 256 deletions

View File

@ -103,6 +103,16 @@ identifier [A-z][A-z0-9]*
ECHOS(("</" + tag_stack.top() + ">").c_str());
pop_tag();
}
\< {
ECHO_CANDIDATE;
tag_candidate = "";
ECHOS("&lt;");
}
\> {
ECHO_CANDIDATE;
tag_candidate = "";
ECHOS("&gt;");
}
.|{wsnl} {
ECHO;
}
@ -213,13 +223,7 @@ identifier [A-z][A-z0-9]*
<*>{
\\[(){},:;] {
ECHOC(yytext[0]);
}
\\< {
ECHOS("&lt;");
}
\\> {
ECHOS("&gt;");
ECHOC(yytext[1]);
}
}

View File

@ -1,241 +0,0 @@
&Aacute; &#193;
&aacute; &#225;
&Acirc; &#194;
&acirc; &#226;
&acute; &#180;
&AElig; &#198;
&aelig; &#230;
&Agrave; &#192;
&agrave; &#224;
&Alpha; &#913;
&alpha; &#945;
&amp; &#38;
&and; &#8743;
&ang; &#8736;
&apos; &#39;
&Aring; &#197;
&aring; &#229;
&asymp; &#8776;
&Atilde; &#195;
&atilde; &#227;
&Auml; &#196;
&auml; &#228;
&bdquo; &#8222;
&Beta; &#914;
&beta; &#946;
&brvbar; &#166;
&bull; &#8226;
&cap; &#8745;
&Ccedil; &#199;
&ccedil; &#231;
&cedil; &#184;
&cent; &#162;
&Chi; &#935;
&chi; &#967;
&circ; &#710;
&clubs; &#9827;
&cong; &#8773;
&copy; &#169;
&crarr; &#8629;
&cup; &#8746;
&curren; &#164;
&dagger; &#8224;
&Dagger; &#8225;
&darr; &#8595;
&deg; &#176;
&Delta; &#916;
&delta; &#948;
&diams; &#9830;
&divide; &#247;
&Eacute; &#201;
&eacute; &#233;
&Ecirc; &#202;
&ecirc; &#234;
&Egrave; &#200;
&egrave; &#232;
&empty; &#8709;
&emsp; &#8195;
&ensp; &#8194;
&Epsilon; &#917;
&epsilon; &#949;
&equiv; &#8801;
&Eta; &#919;
&eta; &#951;
&ETH; &#208;
&eth; &#240;
&Euml; &#203;
&euml; &#235;
&euro; &#8364;
&exist; &#8707;
&fnof; &#402;
&forall; &#8704;
&frac12; &#189;
&frac14; &#188;
&frac34; &#190;
&Gamma; &#915;
&gamma; &#947;
&ge; &#8805;
&gt; &#62;
&harr; &#8596;
&hearts; &#9829;
&hellip; &#8230;
&Iacute; &#205;
&iacute; &#237;
&Icirc; &#206;
&icirc; &#238;
&iexcl; &#161;
&Igrave; &#204;
&igrave; &#236;
&infin; &#8734;
&int; &#8747;
&Iota; &#921;
&iota; &#953;
&iquest; &#191;
&isin; &#8712;
&Iuml; &#207;
&iuml; &#239;
&Kappa; &#922;
&kappa; &#954;
&Lambda; &#923;
&lambda; &#955;
&laquo; &#171;
&larr; &#8592;
&lceil; &#8968;
&ldquo; &#8220;
&le; &#8804;
&lfloor; &#8970;
&lowast; &#8727;
&loz; &#9674;
&lrm; &#8206;
&lsaquo; &#8249;
&lsquo; &#8216;
&lt; &#60;
&macr; &#175;
&mdash; &#8212;
&micro; &#181;
&middot; &#183;
&minus; &#8722;
&Mu; &#924;
&mu; &#956;
&nabla; &#8711;
&nbsp; &#160;
&ndash; &#8211;
&ne; &#8800;
&ni; &#8715;
&not; &#172;
&notin; &#8713;
&nsub; &#8836;
&Ntilde; &#209;
&ntilde; &#241;
&Nu; &#925;
&nu; &#957;
&Oacute; &#211;
&oacute; &#243;
&Ocirc; &#212;
&ocirc; &#244;
&OElig; &#338;
&oelig; &#339;
&Ograve; &#210;
&ograve; &#242;
&oline; &#8254;
&Omega; &#937;
&omega; &#969;
&Omicron; &#927;
&omicron; &#959;
&oplus; &#8853;
&or; &#8744;
&ordf; &#170;
&ordm; &#186;
&Oslash; &#216;
&oslash; &#248;
&Otilde; &#213;
&otilde; &#245;
&otimes; &#8855;
&Ouml; &#214;
&ouml; &#246;
&para; &#182;
&part; &#8706;
&permil; &#8240;
&perp; &#8869;
&Phi; &#934;
&phi; &#966;
&Pi; &#928;
&pi; &#960;
&piv; &#982;
&plusmn; &#177;
&pound; &#163;
&prime; &#8242;
&Prime; &#8243;
&prod; &#8719;
&prop; &#8733;
&Psi; &#936;
&psi; &#968;
&quot; &#34;
&radic; &#8730;
&raquo; &#187;
&rarr; &#8594;
&rceil; &#8969;
&rdquo; &#8221;
&reg; &#174;
&rfloor; &#8971;
&Rho; &#929;
&rho; &#961;
&rlm; &#8207;
&rsaquo; &#8250;
&rsquo; &#8217;
&sbquo; &#8218;
&Scaron; &#352;
&scaron; &#353;
&sdot; &#8901;
&sect; &#167;
&shy; &#173;
&Sigma; &#931;
&sigma; &#963;
&sigmaf; &#962;
&sim; &#8764;
&spades; &#9824;
&sub; &#8834;
&sube; &#8838;
&sum; &#8721;
&sup1; &#185;
&sup2; &#178;
&sup3; &#179;
&sup; &#8835;
&supe; &#8839;
&szlig; &#223;
&Tau; &#932;
&tau; &#964;
&there4; &#8756;
&Theta; &#920;
&theta; &#952;
&thetasym; &#977;
&thinsp; &#8201;
&THORN; &#222;
&thorn; &#254;
&tilde; &#732;
&times; &#215;
&trade; &#8482;
&Uacute; &#218;
&uacute; &#250;
&uarr; &#8593;
&Ucirc; &#219;
&ucirc; &#251;
&Ugrave; &#217;
&ugrave; &#249;
&uml; &#168;
&upsih; &#978;
&Upsilon; &#933;
&upsilon; &#965;
&Uuml; &#220;
&uuml; &#252;
&Xi; &#926;
&xi; &#958;
&Yacute; &#221;
&yacute; &#253;
&yen; &#165;
&yuml; &#255;
&Yuml; &#376;
&Zeta; &#918;
&zeta; &#950;
&zwj; &#8205;
&zwnj; &#8204;
1 &Aacute &#193
2 &aacute &#225
3 &Acirc &#194
4 &acirc &#226
5 &acute &#180
6 &AElig &#198
7 &aelig &#230
8 &Agrave &#192
9 &agrave &#224
10 &Alpha &#913
11 &alpha &#945
12 &amp &#38
13 &and &#8743
14 &ang &#8736
15 &apos &#39
16 &Aring &#197
17 &aring &#229
18 &asymp &#8776
19 &Atilde &#195
20 &atilde &#227
21 &Auml &#196
22 &auml &#228
23 &bdquo &#8222
24 &Beta &#914
25 &beta &#946
26 &brvbar &#166
27 &bull &#8226
28 &cap &#8745
29 &Ccedil &#199
30 &ccedil &#231
31 &cedil &#184
32 &cent &#162
33 &Chi &#935
34 &chi &#967
35 &circ &#710
36 &clubs &#9827
37 &cong &#8773
38 &copy &#169
39 &crarr &#8629
40 &cup &#8746
41 &curren &#164
42 &dagger &#8224
43 &Dagger &#8225
44 &darr &#8595
45 &deg &#176
46 &Delta &#916
47 &delta &#948
48 &diams &#9830
49 &divide &#247
50 &Eacute &#201
51 &eacute &#233
52 &Ecirc &#202
53 &ecirc &#234
54 &Egrave &#200
55 &egrave &#232
56 &empty &#8709
57 &emsp &#8195
58 &ensp &#8194
59 &Epsilon &#917
60 &epsilon &#949
61 &equiv &#8801
62 &Eta &#919
63 &eta &#951
64 &ETH &#208
65 &eth &#240
66 &Euml &#203
67 &euml &#235
68 &euro &#8364
69 &exist &#8707
70 &fnof &#402
71 &forall &#8704
72 &frac12 &#189
73 &frac14 &#188
74 &frac34 &#190
75 &Gamma &#915
76 &gamma &#947
77 &ge &#8805
78 &gt &#62
79 &harr &#8596
80 &hearts &#9829
81 &hellip &#8230
82 &Iacute &#205
83 &iacute &#237
84 &Icirc &#206
85 &icirc &#238
86 &iexcl &#161
87 &Igrave &#204
88 &igrave &#236
89 &infin &#8734
90 &int &#8747
91 &Iota &#921
92 &iota &#953
93 &iquest &#191
94 &isin &#8712
95 &Iuml &#207
96 &iuml &#239
97 &Kappa &#922
98 &kappa &#954
99 &Lambda &#923
100 &lambda &#955
101 &laquo &#171
102 &larr &#8592
103 &lceil &#8968
104 &ldquo &#8220
105 &le &#8804
106 &lfloor &#8970
107 &lowast &#8727
108 &loz &#9674
109 &lrm &#8206
110 &lsaquo &#8249
111 &lsquo &#8216
112 &lt &#60
113 &macr &#175
114 &mdash &#8212
115 &micro &#181
116 &middot &#183
117 &minus &#8722
118 &Mu &#924
119 &mu &#956
120 &nabla &#8711
121 &nbsp &#160
122 &ndash &#8211
123 &ne &#8800
124 &ni &#8715
125 &not &#172
126 &notin &#8713
127 &nsub &#8836
128 &Ntilde &#209
129 &ntilde &#241
130 &Nu &#925
131 &nu &#957
132 &Oacute &#211
133 &oacute &#243
134 &Ocirc &#212
135 &ocirc &#244
136 &OElig &#338
137 &oelig &#339
138 &Ograve &#210
139 &ograve &#242
140 &oline &#8254
141 &Omega &#937
142 &omega &#969
143 &Omicron &#927
144 &omicron &#959
145 &oplus &#8853
146 &or &#8744
147 &ordf &#170
148 &ordm &#186
149 &Oslash &#216
150 &oslash &#248
151 &Otilde &#213
152 &otilde &#245
153 &otimes &#8855
154 &Ouml &#214
155 &ouml &#246
156 &para &#182
157 &part &#8706
158 &permil &#8240
159 &perp &#8869
160 &Phi &#934
161 &phi &#966
162 &Pi &#928
163 &pi &#960
164 &piv &#982
165 &plusmn &#177
166 &pound &#163
167 &prime &#8242
168 &Prime &#8243
169 &prod &#8719
170 &prop &#8733
171 &Psi &#936
172 &psi &#968
173 &quot &#34
174 &radic &#8730
175 &raquo &#187
176 &rarr &#8594
177 &rceil &#8969
178 &rdquo &#8221
179 &reg &#174
180 &rfloor &#8971
181 &Rho &#929
182 &rho &#961
183 &rlm &#8207
184 &rsaquo &#8250
185 &rsquo &#8217
186 &sbquo &#8218
187 &Scaron &#352
188 &scaron &#353
189 &sdot &#8901
190 &sect &#167
191 &shy &#173
192 &Sigma &#931
193 &sigma &#963
194 &sigmaf &#962
195 &sim &#8764
196 &spades &#9824
197 &sub &#8834
198 &sube &#8838
199 &sum &#8721
200 &sup1 &#185
201 &sup2 &#178
202 &sup3 &#179
203 &sup &#8835
204 &supe &#8839
205 &szlig &#223
206 &Tau &#932
207 &tau &#964
208 &there4 &#8756
209 &Theta &#920
210 &theta &#952
211 &thetasym &#977
212 &thinsp &#8201
213 &THORN &#222
214 &thorn &#254
215 &tilde &#732
216 &times &#215
217 &trade &#8482
218 &Uacute &#218
219 &uacute &#250
220 &uarr &#8593
221 &Ucirc &#219
222 &ucirc &#251
223 &Ugrave &#217
224 &ugrave &#249
225 &uml &#168
226 &upsih &#978
227 &Upsilon &#933
228 &upsilon &#965
229 &Uuml &#220
230 &uuml &#252
231 &Xi &#926
232 &xi &#958
233 &Yacute &#221
234 &yacute &#253
235 &yen &#165
236 &yuml &#255
237 &Yuml &#376
238 &Zeta &#918
239 &zeta &#950
240 &zwj &#8205
241 &zwnj &#8204

273
source/html_special.hpp Normal file
View File

@ -0,0 +1,273 @@
#ifndef HTML_SPECIAL_HPP
#include <codecvt>
#include <locale>
const char * html_special_table[][2] =
{
{"&Aacute;", "&#193;"},
{"&aacute;", "&#225;"},
{"&Acirc;", "&#194;"},
{"&acirc;", "&#226;"},
{"&acute;", "&#180;"},
{"&AElig;", "&#198;"},
{"&aelig;", "&#230;"},
{"&Agrave;", "&#192;"},
{"&agrave;", "&#224;"},
{"&Alpha;", "&#913;"},
{"&alpha;", "&#945;"},
{"&amp;", "&#38;"},
{"&and;", "&#8743;"},
{"&ang;", "&#8736;"},
{"&apos;", "&#39;"},
{"&Aring;", "&#197;"},
{"&aring;", "&#229;"},
{"&asymp;", "&#8776;"},
{"&Atilde;", "&#195;"},
{"&atilde;", "&#227;"},
{"&Auml;", "&#196;"},
{"&auml;", "&#228;"},
{"&bdquo;", "&#8222;"},
{"&Beta;", "&#914;"},
{"&beta;", "&#946;"},
{"&brvbar;", "&#166;"},
{"&bull;", "&#8226;"},
{"&cap;", "&#8745;"},
{"&Ccedil;", "&#199;"},
{"&ccedil;", "&#231;"},
{"&cedil;", "&#184;"},
{"&cent;", "&#162;"},
{"&Chi;", "&#935;"},
{"&chi;", "&#967;"},
{"&circ;", "&#710;"},
{"&clubs;", "&#9827;"},
{"&cong;", "&#8773;"},
{"&copy;", "&#169;"},
{"&crarr;", "&#8629;"},
{"&cup;", "&#8746;"},
{"&curren;", "&#164;"},
{"&dagger;", "&#8224;"},
{"&Dagger;", "&#8225;"},
{"&darr;", "&#8595;"},
{"&deg;", "&#176;"},
{"&Delta;", "&#916;"},
{"&delta;", "&#948;"},
{"&diams;", "&#9830;"},
{"&divide;", "&#247;"},
{"&Eacute;", "&#201;"},
{"&eacute;", "&#233;"},
{"&Ecirc;", "&#202;"},
{"&ecirc;", "&#234;"},
{"&Egrave;", "&#200;"},
{"&egrave;", "&#232;"},
{"&empty;", "&#8709;"},
{"&emsp;", "&#8195;"},
{"&ensp;", "&#8194;"},
{"&Epsilon;", "&#917;"},
{"&epsilon;", "&#949;"},
{"&equiv;", "&#8801;"},
{"&Eta;", "&#919;"},
{"&eta;", "&#951;"},
{"&ETH;", "&#208;"},
{"&eth;", "&#240;"},
{"&Euml;", "&#203;"},
{"&euml;", "&#235;"},
{"&euro;", "&#8364;"},
{"&exist;", "&#8707;"},
{"&fnof;", "&#402;"},
{"&forall;", "&#8704;"},
{"&frac12;", "&#189;"},
{"&frac14;", "&#188;"},
{"&frac34;", "&#190;"},
{"&Gamma;", "&#915;"},
{"&gamma;", "&#947;"},
{"&ge;", "&#8805;"},
{"&gt;", "&#62;"},
{"&harr;", "&#8596;"},
{"&hearts;", "&#9829;"},
{"&hellip;", "&#8230;"},
{"&Iacute;", "&#205;"},
{"&iacute;", "&#237;"},
{"&Icirc;", "&#206;"},
{"&icirc;", "&#238;"},
{"&iexcl;", "&#161;"},
{"&Igrave;", "&#204;"},
{"&igrave;", "&#236;"},
{"&infin;", "&#8734;"},
{"&int;", "&#8747;"},
{"&Iota;", "&#921;"},
{"&iota;", "&#953;"},
{"&iquest;", "&#191;"},
{"&isin;", "&#8712;"},
{"&Iuml;", "&#207;"},
{"&iuml;", "&#239;"},
{"&Kappa;", "&#922;"},
{"&kappa;", "&#954;"},
{"&Lambda;", "&#923;"},
{"&lambda;", "&#955;"},
{"&laquo;", "&#171;"},
{"&larr;", "&#8592;"},
{"&lceil;", "&#8968;"},
{"&ldquo;", "&#8220;"},
{"&le;", "&#8804;"},
{"&lfloor;", "&#8970;"},
{"&lowast;", "&#8727;"},
{"&loz;", "&#9674;"},
{"&lrm;", "&#8206;"},
{"&lsaquo;", "&#8249;"},
{"&lsquo;", "&#8216;"},
{"&lt;", "&#60;"},
{"&macr;", "&#175;"},
{"&mdash;", "&#8212;"},
{"&micro;", "&#181;"},
{"&middot;", "&#183;"},
{"&minus;", "&#8722;"},
{"&Mu;", "&#924;"},
{"&mu;", "&#956;"},
{"&nabla;", "&#8711;"},
{"&nbsp;", "&#160;"},
{"&ndash;", "&#8211;"},
{"&ne;", "&#8800;"},
{"&ni;", "&#8715;"},
{"&not;", "&#172;"},
{"&notin;", "&#8713;"},
{"&nsub;", "&#8836;"},
{"&Ntilde;", "&#209;"},
{"&ntilde;", "&#241;"},
{"&Nu;", "&#925;"},
{"&nu;", "&#957;"},
{"&Oacute;", "&#211;"},
{"&oacute;", "&#243;"},
{"&Ocirc;", "&#212;"},
{"&ocirc;", "&#244;"},
{"&OElig;", "&#338;"},
{"&oelig;", "&#339;"},
{"&Ograve;", "&#210;"},
{"&ograve;", "&#242;"},
{"&oline;", "&#8254;"},
{"&Omega;", "&#937;"},
{"&omega;", "&#969;"},
{"&Omicron;", "&#927;"},
{"&omicron;", "&#959;"},
{"&oplus;", "&#8853;"},
{"&or;", "&#8744;"},
{"&ordf;", "&#170;"},
{"&ordm;", "&#186;"},
{"&Oslash;", "&#216;"},
{"&oslash;", "&#248;"},
{"&Otilde;", "&#213;"},
{"&otilde;", "&#245;"},
{"&otimes;", "&#8855;"},
{"&Ouml;", "&#214;"},
{"&ouml;", "&#246;"},
{"&para;", "&#182;"},
{"&part;", "&#8706;"},
{"&permil;", "&#8240;"},
{"&perp;", "&#8869;"},
{"&Phi;", "&#934;"},
{"&phi;", "&#966;"},
{"&Pi;", "&#928;"},
{"&pi;", "&#960;"},
{"&piv;", "&#982;"},
{"&plusmn;", "&#177;"},
{"&pound;", "&#163;"},
{"&prime;", "&#8242;"},
{"&Prime;", "&#8243;"},
{"&prod;", "&#8719;"},
{"&prop;", "&#8733;"},
{"&Psi;", "&#936;"},
{"&psi;", "&#968;"},
{"&quot;", "&#34;"},
{"&radic;", "&#8730;"},
{"&raquo;", "&#187;"},
{"&rarr;", "&#8594;"},
{"&rceil;", "&#8969;"},
{"&rdquo;", "&#8221;"},
{"&reg;", "&#174;"},
{"&rfloor;", "&#8971;"},
{"&Rho;", "&#929;"},
{"&rho;", "&#961;"},
{"&rlm;", "&#8207;"},
{"&rsaquo;", "&#8250;"},
{"&rsquo;", "&#8217;"},
{"&sbquo;", "&#8218;"},
{"&Scaron;", "&#352;"},
{"&scaron;", "&#353;"},
{"&sdot;", "&#8901;"},
{"&sect;", "&#167;"},
{"&shy;", "&#173;"},
{"&Sigma;", "&#931;"},
{"&sigma;", "&#963;"},
{"&sigmaf;", "&#962;"},
{"&sim;", "&#8764;"},
{"&spades;", "&#9824;"},
{"&sub;", "&#8834;"},
{"&sube;", "&#8838;"},
{"&sum;", "&#8721;"},
{"&sup1;", "&#185;"},
{"&sup2;", "&#178;"},
{"&sup3;", "&#179;"},
{"&sup;", "&#8835;"},
{"&supe;", "&#8839;"},
{"&szlig;", "&#223;"},
{"&Tau;", "&#932;"},
{"&tau;", "&#964;"},
{"&there4;", "&#8756;"},
{"&Theta;", "&#920;"},
{"&theta;", "&#952;"},
{"&thetasym;", "&#977;"},
{"&thinsp;", "&#8201;"},
{"&THORN;", "&#222;"},
{"&thorn;", "&#254;"},
{"&tilde;", "&#732;"},
{"&times;", "&#215;"},
{"&trade;", "&#8482;"},
{"&Uacute;", "&#218;"},
{"&uacute;", "&#250;"},
{"&uarr;", "&#8593;"},
{"&Ucirc;", "&#219;"},
{"&ucirc;", "&#251;"},
{"&Ugrave;", "&#217;"},
{"&ugrave;", "&#249;"},
{"&uml;", "&#168;"},
{"&upsih;", "&#978;"},
{"&Upsilon;", "&#933;"},
{"&upsilon;", "&#965;"},
{"&Uuml;", "&#220;"},
{"&uuml;", "&#252;"},
{"&Xi;", "&#926;"},
{"&xi;", "&#958;"},
{"&Yacute;", "&#221;"},
{"&yacute;", "&#253;"},
{"&yen;", "&#165;"},
{"&yuml;", "&#255;"},
{"&Yuml;", "&#376;"},
{"&Zeta;", "&#918;"},
{"&zeta;", "&#950;"},
{"&zwj;", "&#8205;"},
{"&zwnj;", "&#8204;"},
};
const size_t html_special_table_size = sizeof(html_special_table) / sizeof(html_special_table[0]);
const char * html_special_table_lookup(const char * const name) {
// this should be a iterating-decreasing jump search
for (int i = 0; i < html_special_table_size; i++) {
if (!strcmp(name, html_special_table[i][0])) {
return html_special_table[i][1];
}
}
return NULL;
}
const char * html_special_to_utf8(const char * const special) {
static std::string r(special);
trim(r);
uint32_t i(std::stoi(r));
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv1;
r = conv1.to_bytes(i);
return r.c_str();
}
#define HTML_SPECIAL_HPP
#endif

View File

@ -7,11 +7,6 @@
#include <string>
#include <map>
// uint32_t a(3084);
// std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv1;
// std::string u8str = conv1.to_bytes(a);
// std::cout << "UTF-8 conversion produced " << u8str.size() << " bytes:\n";
#include "cli.hpp"
#include "exit_values.hpp"

View File

@ -4,7 +4,10 @@
#include <string>
#include <algorithm>
#define ECHOS(s) fwrite(s, strlen(s), sizeof(char), yyout)
#define ECHOS(s) { \
const char * const ss = s; \
fwrite(ss, strlen(ss), sizeof(char), yyout); \
} while (0)
#define ECHOC(c) fputc(c, yyout)
extern std::vector<std::string> ignore_list;

View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include "global.hpp"
#include "html_special.hpp"
bool is_comment_multiline = false;
unsigned long long comment_begining;
@ -37,6 +38,12 @@ identifier [A-z][A-z0-9]*
ECHOS("//");
BEGIN COMMENT;
}
&[A-z]+; {
ECHOS(html_special_to_utf8(html_special_table_lookup(yytext)));
}
&[0-9]+; {
ECHOS(html_special_to_utf8(yytext));
}
.|\n {
ECHO;
}

View File

@ -10,7 +10,7 @@ html {
body {
hr;
div (class: myclass) {
lorem ipsum
lorem > ipsum
}
}
}

View File

@ -10,7 +10,7 @@
<body>
<hr/>
<div class='myclass'>
lorem ipsum
lorem &gt; ipsum
</div>
</body>
</html>