Skip to content

StringLike field with quotes breaks out of title #3686

@DRSisco

Description

@DRSisco

Describe the bug

Storing content in a field that contains quotes results in only the content before the first quote is in the title. The rest of the content is stored in the tag as individual attributes.

We noticed this when the word hidden was stored after a quote, which resulted in the cell being hidden and the rest of the row shifting to the left.

Reproduction steps

  • For a given record with a StringLike field:
    • Put the content Example "text" hidden in the field.
    • View the index page that contains this model/field.

Expected behavior

  • The content should show (with ellipsis if necessary based on space), and the title should represent the whole field escaping quotes with "

Additional context

  • rails version: 7.1.3
  • rails_admin version: 3.0.0.beta2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions