Skip to content

returned tags customizations #32

@radum

Description

@radum

There are some cases where the <link> tag needs to be self closed <link rel="stylesheet" href="foo.css"/>

I know it's stupid but they are, and I was wondering if we can customize the ref template in the script using options.

if(attbs) {
  ref = '<link rel="stylesheet" href="' + target + '" ' + attbs + '>';
} else {
  ref = '<link rel="stylesheet" href="' + target + '">';
}

Basically the above code will be the default, but if we send a custom template it should use that one. And this should cover all cases I think where you need to manipulate the returned tag. For me being that / at the end.

What do you think?

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