Skip to content

Preserve HTML element attributes in @bassetBlock #172

@jnoordsij

Description

@jnoordsij

The bassetBlock method currently removes the entire script/style block before writing contents to a file,
while it may still contain relevant information.
For example, it could be nice to allow attributes to be preserved, so one could:

  • add type=module to use a module script
  • add data-x attributes to easily access the element and/or query metadata from it in a structured way

Alternatively, an easier way to implement a change that would make this possible is simply adding an attributes parameter to the function, so one can leverage that to pass (custom) attributes.

See also: Laravel-Backpack/FileManager@838cd54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions