Menu

#161 PrettyHtmlSerialiser drops trailing space in tags

v2.30
closed-invalid
nobody
None
5
2023-06-20
2015-12-16
C Martin
No
String html = "<b>One </b>Two";
TagNode node = cleaner.clean(html);
String cleanedHtml = (new PrettyHtmlSerialiser(props, " ")).getAsString(node, "UTF-8");

will produce cleaned HTML of

<b>One</b>Two

dropping the space inside the tag.

SimpleHtmlSerialiser preserves the space.

Discussion

  • Scott Wilson

    Scott Wilson - 2016-10-19
    • Group: v2.17 --> v2.18
     
  • Scott Wilson

    Scott Wilson - 2017-02-06
    • Group: v2.18 --> v2.19
     
  • Scott Wilson

    Scott Wilson - 2017-02-07
    • Group: v2.19 --> v2.20
     
  • Scott Wilson

    Scott Wilson - 2017-05-02
    • Group: v2.20 --> v2.21
     
  • Scott Wilson

    Scott Wilson - 2017-05-11
    • Group: v2.21 --> v2.22
     
  • Scott Wilson

    Scott Wilson - 2018-04-24
    • Group: v2.22 --> v2.23
     
  • Scott Wilson

    Scott Wilson - 2019-09-04
    • Group: v2.23 --> v2.24
     
  • Scott Wilson

    Scott Wilson - 2020-04-29
    • Group: v2.24 --> v2.25
     
  • Scott Wilson

    Scott Wilson - 2021-09-24
    • Group: v2.25 --> v2.26
     
  • Scott Wilson

    Scott Wilson - 2023-04-29
    • Group: v2.26 --> v2.29
     
  • Scott Wilson

    Scott Wilson - 2023-06-19
    • Group: v2.29 --> v2.30
     
  • Scott Wilson

    Scott Wilson - 2023-06-20
    • status: open --> closed-invalid
     
  • Scott Wilson

    Scott Wilson - 2023-06-20

    Duplicate of 162.

     

Log in to post a comment.