Problem/Motivation
Right now it is not possible to use this module in a href attribute of a link, as it breaks the html.
My proposal is to be able to use both " and ' as enclosure.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3380978-9.patch | 1.88 KB | evamtinez |
Right now it is not possible to use this module in a href attribute of a link, as it breaks the html.
My proposal is to be able to use both " and ' as enclosure.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3380978-9.patch | 1.88 KB | evamtinez |
Comments
Comment #2
facine commentedComment #3
facine commentedComment #5
facine commentedComment #6
pianomansam commented@facine I think adding this feature is great. As it is currently written, though, it looks like there's nothing that forces the content to use the same type of quote character; a double quote could be first and a single quote second.
Comment #7
pianomansam commented@facine can you also provide an example of how this affects you? The token replacement will also replace the double quotes, so it's unclear to me how this is an actual issue.
Comment #8
facine commented@pianomansam, I am attaching a new patch applying the suggested changes.
An example would be:
Comment #9
pianomansam commented@facine, thanks for the updated patch. I'll review it.
Also, thanks for the scenario where this could be an issue. Is this particular one breaking something for you? Whether you use
<a href="mailto:[current-user:mail|'email@example.com']">or<a href="mailto:[current-user:mail|"email@example.com"]">, the resulting HTML will identical and valid:<a href="mailto:email@example.com">Comment #10
facine commentedI have issues with:
<a href="mailto:[current-user:mail|"email@example.com"]">, this is the result:<a href="mailto:[current-user:mail|" email="">because the double quote is closing the href attribute.Comment #11
pianomansam commented@facine Hmm, can you provide a bit more context? Is a text format involved? Any particular modules or contexts where this is happening?
Comment #12
facine commented@pianomansam, using a full html text format and the token filter module.
Comment #13
pianomansam commentedI was wondering if it was the token filter module. What's the order of filters? Is the token filter first?
Comment #14
pianomansam commentedComment #15
evamtinezHi,
I've attached an updated patch for version 2.3.2, replacing the one from #5.