Rendering HTML Language/Links

Created on 2 October 2024, 3 months ago

Problem/Motivation

Uploaded CSV with HTML Links and displayed raw HTML code - no links. I can provide a sample file if needed.

Steps to reproduce

Uploaded CSV with HTML Links

Proposed resolution

Allow HTML a href tag to render as link in table

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States euliss

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @euliss
  • πŸ‡¨πŸ‡¦Canada jmdeleon

    Uploading text files with potentially un-checked HTML introduces a security risk, and really isn't going to be supported by this module.

    There is limited special support for hyperlinking when you turn on Smart URL handling (and read the module source code).

  • πŸ‡ΊπŸ‡ΈUnited States euliss

    Thank you for your response. I have attached a sample file in TXT format. This forum would not allow CSV. This file contains the link in markdown language. When we used that, the entire site failed with an error.

    Thanks for any assistance.

  • πŸ‡¨πŸ‡¦Canada jmdeleon

    Thanks for the sample @euliss !

    The simple Markdown link support within the module handled the link in the sample.

    I also noticed that the sample file is tab-separated. Setting the field separator to '\t' DOES cause an error, as it tries to use the string sequence as a separator but fails.

    I can put work in to better support the '\t' as an escape sequence, but as a workaround for you to get going, is it possible to use another separator character?

  • πŸ‡¨πŸ‡¦Canada jmdeleon

    Here is a patch that accepts \t in the field formatter configuration as a tab-character delimiter for tab-delimited files.

  • πŸ‡ΊπŸ‡ΈUnited States euliss

    You have been most helpful! I will try to adjust my file and will let you know.

    Thanks!

  • πŸ‡¨πŸ‡¦Canada jmdeleon

    I think the support for tab as a delimiter in configuration is a sound fix and should be included in a proper release. It is supported by PHP fgetcsv() which this module essentially serves as a wrapper for.

    Please try the \t for tab in the Field formatter configuration and try a full TSV (tab-separated value) file.

  • πŸ‡¨πŸ‡¦Canada jmdeleon

    Released version 1.0.23 to address findings from this specific issue, particularly TSV (tab-separated values) file support.

  • πŸ‡ΊπŸ‡ΈUnited States euliss

    Thank you again for your quick response!!

Production build 0.71.5 2024