Escape characters in HTML logs

Discussion in 'Bugs and Fixes' started by WindBellKL, Jul 24, 2014.

  1. WindBellKL

    WindBellKL New Member

    Joined:
    Nov 23, 2012
    Messages:
    23
    Likes Received:
    1
    In HTML we shall use following escape characters:
    "
    "
    &
    &
    <
    &lt;
    >
    &gt;

    However, if someone occasionally uses "&<> in nicknames of their Pokemons, these will be recorded into the HTML log, which may cause the HTML displayed incorrectly.
    Actually I found a log, where in all lines with "UseAttack" messages, "&" is converted to &amp, but in all the other lines, "&" is kept as "&".
     
  2. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    I guess I never replied to this, can you post an example? I don't battle, but I'm assuming this is one of the saved battle logs?
     
  3. WindBellKL

    WindBellKL New Member

    Joined:
    Nov 23, 2012
    Messages:
    23
    Likes Received:
    1
    Sorry I cannot find the original one now. This problem can be reproduced by a username with a "&". However, most browsers are able to deal with non-standard htmls, so there is no display problem in most cases (And the problem is browser depenent), the only behaviour is that some "&" is kept in the source file of HTML log.