Skip to content

Wrap items in specific column with specified tag #15

@mylespollie

Description

@mylespollie

One of the columns outputted in the table I'm building is a URL. I was wondering if there was a way to specify how a column is printed so it can be a clickable link. This example is given:

x.print_html(attributes={"name":"my_table", "class":"red_table"})
will print:

<table name="my_table" class="red_table">
    <tr>
        <th>City name</th>
        <th>Area</th>
        <th>Population</th>
        <th>google.com</th>
    </tr>
    ...
    ...
    ...
</table>

I would like it to be printed as:

<table name="my_table" class="red_table">
    <tr>
        <th>City name</th>
        <th>Area</th>
        <th>Population</th>
        <th><a href = google.com>google.com</a></th>
    </tr>
    ...
    ...
    ...
</table>

Is this possible? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions