Decode Value as HTML - CSharp System

CSharp examples for System:String HTML

Description

Decode Value as HTML

Demo Code


using System.Text;
using System.IO;/* ww w .  j a  v a  2 s . c  o m*/
using System.Globalization;
using System;

public class Main{
        public static string DecodeValue(string value)
        {
            StringBuilder builder = new StringBuilder();
            StringReader reader = new StringReader(value);
            int num = reader.Read();
            while (num != -1)
            {
                StringBuilder builder2 = new StringBuilder();
                while ((num != 0x26) && (num != -1))
                {
                    builder2.Append((char)num);
                    num = reader.Read();
                }
                builder.Append(builder2.ToString());
                if (num == 0x26)
                {
                    builder2 = new StringBuilder();
                    while ((num != 0x3b) && (num != -1))
                    {
                        builder2.Append((char)num);
                        num = reader.Read();
                    }
                    if (num == 0x3b)
                    {
                        num = reader.Read();
                        builder2.Append(';');
                        if (builder2[1] == '#')
                        {
                            int result = -1;
                            if (int.TryParse(builder2.ToString().Substring(2, builder2.Length - 3), out result))
                            {
                                builder.Append((char)result);
                            }
                            else if (int.TryParse(builder2.ToString().Substring(3, builder2.Length - 4), NumberStyles.HexNumber, null, out result))
                            {
                                builder.Append((char)result);
                            }
                        }
                        else
                        {
                            switch (builder2.ToString())
                            {
                                case "<":
                                    {
                                        builder.Append("<");
                                        continue;
                                    }
                                case "&gt;":
                                    {
                                        builder.Append(">");
                                        continue;
                                    }
                                case "&quot;":
                                    {
                                        builder.Append("\"");
                                        continue;
                                    }
                                case "&amp;":
                                    {
                                        builder.Append("&");
                                        continue;
                                    }
                                case "&Aacute;":
                                    {
                                        builder.Append('\x00c1');
                                        continue;
                                    }
                                case "&aacute;":
                                    {
                                        builder.Append('\x00e1');
                                        continue;
                                    }
                                case "&Acirc;":
                                    {
                                        builder.Append('\x00c2');
                                        continue;
                                    }
                                case "&acirc;":
                                    {
                                        builder.Append('\x00e2');
                                        continue;
                                    }
                                case "&acute;":
                                    {
                                        builder.Append('\x00b4');
                                        continue;
                                    }
                                case "&AElig;":
                                    {
                                        builder.Append('\x00c6');
                                        continue;
                                    }
                                case "&aelig;":
                                    {
                                        builder.Append('\x00e6');
                                        continue;
                                    }
                                case "&Agrave;":
                                    {
                                        builder.Append('\x00c0');
                                        continue;
                                    }
                                case "&agrave;":
                                    {
                                        builder.Append('\x00e0');
                                        continue;
                                    }
                                case "&alefsym;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Alpha;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&alpha;":
                                    {
                                        builder.Append('a');
                                        continue;
                                    }
                                case "&and;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ang;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Aring;":
                                    {
                                        builder.Append('\x00c5');
                                        continue;
                                    }
                                case "&aring;":
                                    {
                                        builder.Append('\x00e5');
                                        continue;
                                    }
                                case "&asymp;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Atilde;":
                                    {
                                        builder.Append('\x00c3');
                                        continue;
                                    }
                                case "&atilde;":
                                    {
                                        builder.Append('\x00e3');
                                        continue;
                                    }
                                case "&Auml;":
                                    {
                                        builder.Append('\x00c4');
                                        continue;
                                    }
                                case "&auml;":
                                    {
                                        builder.Append('\x00e4');
                                        continue;
                                    }
                                case "&bdquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Beta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&beta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&brvbar;":
                                    {
                                        builder.Append('\x00a6');
                                        continue;
                                    }
                                case "&bull;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&cap;":
                                    {
                                        builder.Append('n');
                                        continue;
                                    }
                                case "&Ccedil;":
                                    {
                                        builder.Append('\x00c7');
                                        continue;
                                    }
                                case "&ccedil;":
                                    {
                                        builder.Append('\x00e7');
                                        continue;
                                    }
                                case "&cedil;":
                                    {
                                        builder.Append('\x00b8');
                                        continue;
                                    }
                                case "&cent;":
                                    {
                                        builder.Append('\x00a2');
                                        continue;
                                    }
                                case "&Chi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&chi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&circ;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&clubs;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&cong;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&copy;":
                                    {
                                        builder.Append('\x00a9');
                                        continue;
                                    }
                                case "&crarr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&cup;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&curren;":
                                    {
                                        builder.Append('\x00a4');
                                        continue;
                                    }
                                case "&dagger;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Dagger;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&darr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&dArr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&deg;":
                                    {
                                        builder.Append('\x00b0');
                                        continue;
                                    }
                                case "&Delta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&delta;":
                                    {
                                        builder.Append('d');
                                        continue;
                                    }
                                case "&diams;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&divide;":
                                    {
                                        builder.Append('\x00f7');
                                        continue;
                                    }
                                case "&Eacute;":
                                    {
                                        builder.Append('\x00c9');
                                        continue;
                                    }
                                case "&eacute;":
                                    {
                                        builder.Append('\x00e9');
                                        continue;
                                    }
                                case "&Ecirc;":
                                    {
                                        builder.Append('\x00ca');
                                        continue;
                                    }
                                case "&ecirc;":
                                    {
                                        builder.Append('\x00ea');
                                        continue;
                                    }
                                case "&Egrave;":
                                    {
                                        builder.Append('\x00c8');
                                        continue;
                                    }
                                case "&egrave;":
                                    {
                                        builder.Append('\x00e8');
                                        continue;
                                    }
                                case "&empty;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&emsp;":
                                    {
                                        builder.Append(' ');
                                        continue;
                                    }
                                case "&Epsilon;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&epsilon;":
                                    {
                                        builder.Append('e');
                                        continue;
                                    }
                                case "&equiv;":
                                    {
                                        builder.Append('=');
                                        continue;
                                    }
                                case "&Eta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&eta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ETH;":
                                    {
                                        builder.Append('\x00d0');
                                        continue;
                                    }
                                case "&eth;":
                                    {
                                        builder.Append('\x00f0');
                                        continue;
                                    }
                                case "&Euml;":
                                    {
                                        builder.Append('\x00cb');
                                        continue;
                                    }
                                case "&euml;":
                                    {
                                        builder.Append('\x00eb');
                                        continue;
                                    }
                                case "&euro;":
                                    {
                                        builder.Append('\x0080');
                                        continue;
                                    }
                                case "&exist;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&fnof;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&forall;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&frac12;":
                                    {
                                        builder.Append('\x00bd');
                                        continue;
                                    }
                                case "&frac14;":
                                    {
                                        builder.Append('\x00bc');
                                        continue;
                                    }
                                case "&frac34;":
                                    {
                                        builder.Append('\x00be');
                                        continue;
                                    }
                                case "&fras1;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Gamma;":
                                    {
                                        builder.Append('G');
                                        continue;
                                    }
                                case "&gamma;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ge;":
                                    {
                                        builder.Append('=');
                                        continue;
                                    }
                                case "&harr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&hArr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&hearts;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&hellip;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Iacute;":
                                    {
                                        builder.Append('\x00cd');
                                        continue;
                                    }
                                case "&iacute;":
                                    {
                                        builder.Append('\x00ed');
                                        continue;
                                    }
                                case "&Icirc;":
                                    {
                                        builder.Append('\x00ce');
                                        continue;
                                    }
                                case "&icirc;":
                                    {
                                        builder.Append('\x00ee');
                                        continue;
                                    }
                                case "&iexcl;":
                                    {
                                        builder.Append('\x00a1');
                                        continue;
                                    }
                                case "&Igrave;":
                                    {
                                        builder.Append('\x00cc');
                                        continue;
                                    }
                                case "&igrave;":
                                    {
                                        builder.Append('\x00ec');
                                        continue;
                                    }
                                case "&image;":
                                    {
                                        builder.Append('I');
                                        continue;
                                    }
                                case "&infin;":
                                    {
                                        builder.Append('8');
                                        continue;
                                    }
                                case "&int;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Iota;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&iota;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&iquest;":
                                    {
                                        builder.Append('\x00bf');
                                        continue;
                                    }
                                case "&isin;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Iuml;":
                                    {
                                        builder.Append('\x00cf');
                                        continue;
                                    }
                                case "&iuml;":
                                    {
                                        builder.Append('\x00ef');
                                        continue;
                                    }
                                case "&Kappa;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&kappa;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Lambda;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lambda;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lang;":
                                    {
                                        builder.Append('<');
                                        continue;
                                    }
                                case "&laquo;":
                                    {
                                        builder.Append('\x00ab');
                                        continue;
                                    }
                                case "&larr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lArr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lceil;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ldquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&le;":
                                    {
                                        builder.Append('=');
                                        continue;
                                    }
                                case "&lfloor;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lowast;":
                                    {
                                        builder.Append('*');
                                        continue;
                                    }
                                case "&loz;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lrm;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lsaquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&lsquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&macr;":
                                    {
                                        builder.Append('\x00af');
                                        continue;
                                    }
                                case "&mdash;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&micro;":
                                    {
                                        builder.Append('\x00b5');
                                        continue;
                                    }
                                case "&middot;":
                                    {
                                        builder.Append('\x00b7');
                                        continue;
                                    }
                                case "&minus;":
                                    {
                                        builder.Append('-');
                                        continue;
                                    }
                                case "&Mu;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&mu;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&nabla;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&nbsp;":
                                    {
                                        builder.Append(' ');
                                        continue;
                                    }
                                case "&ndash;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ne;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ni;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&not;":
                                    {
                                        builder.Append('\x00ac');
                                        continue;
                                    }
                                case "&notin;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&nsub;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Ntilde;":
                                    {
                                        builder.Append('\x00d1');
                                        continue;
                                    }
                                case "&ntilde;":
                                    {
                                        builder.Append('\x00f1');
                                        continue;
                                    }
                                case "&Nu;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&nu;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Oacute;":
                                    {
                                        builder.Append('\x00d3');
                                        continue;
                                    }
                                case "&oacute;":
                                    {
                                        builder.Append('\x00f3');
                                        continue;
                                    }
                                case "&Ocirc;":
                                    {
                                        builder.Append('\x00d4');
                                        continue;
                                    }
                                case "&ocirc;":
                                    {
                                        builder.Append('\x00f4');
                                        continue;
                                    }
                                case "&OElig;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&oelig;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Ograve;":
                                    {
                                        builder.Append('\x00d2');
                                        continue;
                                    }
                                case "&ograve;":
                                    {
                                        builder.Append('\x00f2');
                                        continue;
                                    }
                                case "&oline;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Omega;":
                                    {
                                        builder.Append('O');
                                        continue;
                                    }
                                case "&omega;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Omicron;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&omicron;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&oplus;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&or;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&ordf;":
                                    {
                                        builder.Append('\x00aa');
                                        continue;
                                    }
                                case "&ordm;":
                                    {
                                        builder.Append('\x00ba');
                                        continue;
                                    }
                                case "&Oslash;":
                                    {
                                        builder.Append('\x00d8');
                                        continue;
                                    }
                                case "&oslash;":
                                    {
                                        builder.Append('\x00f8');
                                        continue;
                                    }
                                case "&Otilde;":
                                    {
                                        builder.Append('\x00d5');
                                        continue;
                                    }
                                case "&otilde;":
                                    {
                                        builder.Append('\x00f5');
                                        continue;
                                    }
                                case "&otimes;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Ouml;":
                                    {
                                        builder.Append('\x00d6');
                                        continue;
                                    }
                                case "&ouml;":
                                    {
                                        builder.Append('\x00f6');
                                        continue;
                                    }
                                case "&para;":
                                    {
                                        builder.Append('\x00b6');
                                        continue;
                                    }
                                case "&part;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&permil;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&perp;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Phi;":
                                    {
                                        builder.Append('F');
                                        continue;
                                    }
                                case "&phi;":
                                    {
                                        builder.Append('f');
                                        continue;
                                    }
                                case "&Pi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&pi;":
                                    {
                                        builder.Append('p');
                                        continue;
                                    }
                                case "&piv;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&plusmn;":
                                    {
                                        builder.Append('\x00b1');
                                        continue;
                                    }
                                case "&pound;":
                                    {
                                        builder.Append('\x00a3');
                                        continue;
                                    }
                                case "&prime;":
                                    {
                                        builder.Append(''');
                                        continue;
                                    }
                                case "&Prime;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&prod;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&prop;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Psi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&psi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&radic;":
                                    {
                                        builder.Append('v');
                                        continue;
                                    }
                                case "&rang;":
                                    {
                                        builder.Append('>');
                                        continue;
                                    }
                                case "&raquo;":
                                    {
                                        builder.Append('\x00bb');
                                        continue;
                                    }
                                case "&rarr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rArr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rceil;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rdquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&real;":
                                    {
                                        builder.Append('R');
                                        continue;
                                    }
                                case "&reg;":
                                    {
                                        builder.Append('\x00ae');
                                        continue;
                                    }
                                case "&rfloor;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Rho;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rho;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rlm;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rsaquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&rsquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sbquo;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Scaron;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&scaron;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sdot;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sect;":
                                    {
                                        builder.Append('\x00a7');
                                        continue;
                                    }
                                case "&shy;":
                                    {
                                        builder.Append('\x00ad');
                                        continue;
                                    }
                                case "&Sigma;":
                                    {
                                        builder.Append('S');
                                        continue;
                                    }
                                case "&sigma;":
                                    {
                                        builder.Append('s');
                                        continue;
                                    }
                                case "&sigmaf;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sim;":
                                    {
                                        builder.Append('~');
                                        continue;
                                    }
                                case "&spades;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sub;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sube;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sum;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sup;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&sup1;":
                                    {
                                        builder.Append('\x00b9');
                                        continue;
                                    }
                                case "&sup2;":
                                    {
                                        builder.Append('\x00b2');
                                        continue;
                                    }
                                case "&sup3;":
                                    {
                                        builder.Append('\x00b3');
                                        continue;
                                    }
                                case "&supe;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&szlig;":
                                    {
                                        builder.Append('\x00df');
                                        continue;
                                    }
                                case "&Tau;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&tau;":
                                    {
                                        builder.Append('t');
                                        continue;
                                    }
                                case "&there4;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Theta;":
                                    {
                                        builder.Append('T');
                                        continue;
                                    }
                                case "&theta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&thetasym;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&thinsp;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&THORN;":
                                    {
                                        builder.Append('\x00de');
                                        continue;
                                    }
                                case "&thorn;":
                                    {
                                        builder.Append('\x00fe');
                                        continue;
                                    }
                                case "&tilde;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&times;":
                                    {
                                        builder.Append('\x00d7');
                                        continue;
                                    }
                                case "&trade;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Uacute;":
                                    {
                                        builder.Append('\x00da');
                                        continue;
                                    }
                                case "&uacute;":
                                    {
                                        builder.Append('\x00fa');
                                        continue;
                                    }
                                case "&uarr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&uArr;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Ucirc;":
                                    {
                                        builder.Append('\x00db');
                                        continue;
                                    }
                                case "&ucirc;":
                                    {
                                        builder.Append('\x00fb');
                                        continue;
                                    }
                                case "&Ugrave;":
                                    {
                                        builder.Append('\x00d9');
                                        continue;
                                    }
                                case "&ugrave;":
                                    {
                                        builder.Append('\x00f9');
                                        continue;
                                    }
                                case "&uml;":
                                    {
                                        builder.Append('\x00a8');
                                        continue;
                                    }
                                case "&upsih;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Upsilon;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&upsilon;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Uuml;":
                                    {
                                        builder.Append('\x00dc');
                                        continue;
                                    }
                                case "&uuml;":
                                    {
                                        builder.Append('\x00fc');
                                        continue;
                                    }
                                case "&weierp;":
                                    {
                                        builder.Append('P');
                                        continue;
                                    }
                                case "&Xi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&xi;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&Yacute;":
                                    {
                                        builder.Append('\x00dd');
                                        continue;
                                    }
                                case "&yacute;":
                                    {
                                        builder.Append('\x00fd');
                                        continue;
                                    }
                                case "&yen;":
                                    {
                                        builder.Append('\x00a5');
                                        continue;
                                    }
                                case "&Yuml;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&yuml;":
                                    {
                                        builder.Append('\x00ff');
                                        continue;
                                    }
                                case "&Zeta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&zeta;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&zwj;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                                case "&zwnj;":
                                    {
                                        builder.Append('?');
                                        continue;
                                    }
                            }
                            builder.Append(builder2.ToString());
                        }
                    }
                    else
                    {
                        builder.Append(builder2.ToString());
                    }
                }
            }
            return builder.ToString();
        }
}

Related Tutorials