Skip to content

1.2.2: text column default that looks like HTML is not tokenized by HTML documentation export, does not display properly in HTML documentation #2049

@jhardin-accumula

Description

@jhardin-accumula

Bug description
If the default value for a text column looks like HTML, it does not get escaped/tokenized in the HTML schema documentation and does not display properly.

How to reproduce

  1. Define a text/varchar column with the default value '<UNKNOWN>'
  2. Generate HTML schema documentation
  3. Generated HTML does not tokenize the less-than symbol, leading to it being interpreted as HTML markup:
<td class="value">'<UNKNOWN>'</td>

Browser inspect shows:

<td class="value">'<unknown>'</unknown></td>

Browser displays:

''

Expected behavior
Text default constant content that looks like HTML markup gets tokenized in the HTML documentation and displays properly, e.g.:

<td class="value">'&lt;UNKNOWN&gt;'</td>

displayed as:

'<UNKNOWN>'

Info about your desktop

  • pgModeler version: 1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions