Changeset 7e90c03


Ignore:
Timestamp:
2022-11-28T17:47:55Z (16 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
8ca172f
Parents:
fb774da
git-author:
Sean M. Collins <sean@…> (28-11-22 17:47:55)
git-committer:
GitHub <noreply@…> (28-11-22 17:47:55)
Message:

Add HTML5 escape sequence for ', < and > (#164)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    rfb774da r7e90c03  
    150150        { "uuml",   "ü" },
    151151        { "nbsp",   " " },
     152        { "#38",    "&" },
     153        { "#39",    "'" },
     154        { "#60",    "<" },
     155        { "#62",    ">" },
    152156        { "",        ""  }
    153157};
     
    199203                } else if (*in == '&') {
    200204                        cs = ++in;
    201                         while (*in && g_ascii_isalpha(*in)) {
     205
     206                        if (*in == '#') {
     207                                in++;
     208                        }
     209
     210                        while (*in && g_ascii_isalnum(*in)) {
    202211                                in++;
    203212                        }
Note: See TracChangeset for help on using the changeset viewer.