Closed
Description
Prework
- Read and abide by gt's code of conduct and contributing guidelines.
- Search for duplicates among the existing issues (both open and closed).
Proposal
I recently realized that the fmt_url()
function does not allow custom attribute values and has the target attribute hard-coded as "_blank". Adding support for custom attributes to the fmt_url()
function would add greater flexibility how the links are created. Support for other custom attributes including hreflang, ping, referrerpolicy, rel, and type could be added at the same time.
I used the documentation on the supported attributes for anchor elements ("") from the mdn developer docs as a reference in setting up the validation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes