I would like to include html links in my subscribe page. I insert valid HTML in the edit subscribe page, but phplist “escapes” the quotation marks in the href=“example.org” so the links on the final subscribe page end up as http://list.example.com/“http://www.example.org” – which of course doesn’t work!
In addition, if I use quotation marks in regular text it comes out at "in the text.
Okay, that is a step in the right direction – " works in the text, but not for the links. The links still show up as https://list.example.com/“http://www.example.org/” as if it were a relative link. At least the escaping “” is gone. But still no properly working links.
Maybe this is just a red herring, but why are quotation marks okay in the “Header” and “Footer” sections, but not in the “Intro” section?
Which page are you looking at?
If it is the public page xxx.com/lists then that is a bug in the handling of subscribe page fields. But the actual subscribe page xxx.com/lists?p=subscribe&id=n should display correctly.
You can fix the first problem by making a change to the file lists/index.php
change this line (should be line 335 in release 3.0.12)
Thanks – that part works perfectly, even though its syntactically incorrect html.
So no quotes needed for <a href=http:// in the “Intro” section of “Edit Subscribe Page” – http://list.example.com/admin/?page=spageedit
And use " in the text for quotation marks.
But its inconsistent and misleading because the next sections on the same page, “Header” and “Footer” are pre-populated with syntactically correct HTML including quotes.