1
0

a href tag is busted


 invite response                
2021 May 6, 2:16pm   1,255 views  16 comments

by EBGuy   ➕follow (0)   💰tip   ignore  

Whenever I try to post with the a href tag, the html fragment between the open/close brackets gets mangled. I can then use the editor to re-edit the mangled line, but it is rather frustrating.

Comments 1 - 16 of 16        Search these comments

1   richwicks   2021 May 6, 2:17pm  

Show an example. You can post the less than and great than tags with

ampersand g t ; and ampersand l t ;
& g t ; & l t;

> <
2   EBGuy   2021 May 6, 2:20pm  

<a href="https://www.theatlantic.com/politics/archive/2021/05/liberals-covid-19-science-denial-lockdown/618780/">The Liberals Who Can’t Quit Lockdown</a>

Gets mangled into this:
The Liberals Who Can’t Quit Lockdown

EDIT: looks like it has been fixed?!
4   EBGuy   2021 May 6, 2:33pm  

No! Still busted ^^^^^^^
But if you do the & l t & g t nonsense, the second a href is processed properly (as in my first example).
5   EBGuy   2021 May 6, 2:39pm  

@richwicks, patrick, or anyone else, Can you copy the following line and try to put in a post:
<a href="https://www.theatlantic.com/politics/archive/2021/05/liberals-covid-19-science-denial-lockdown/618780/">The Liberals Who Can’t Quit Lockdown</a>
7   Patrick   2021 May 6, 2:50pm  

Seems to work for me.

@EBGuy tell me more about what you mean by busted. I'll watch this thread.
8   EBGuy   2021 May 6, 2:52pm  

Patrick says
Seems to work for me.


It did NOT work for you.
>The Liberals Who Can’t Quit Lockdown<
was deleted!
9   Patrick   2021 May 6, 2:58pm  

Ah, now I see what you mean!

Let me try to figure out the problem. I'm pretty sure it has to do with the single quote in the title.
10   richwicks   2021 May 6, 3:23pm  

EBGuy says
<a href="https://www.theatlantic.com/politics/archive/2021/05/liberals-covid-19-science-denial-lockdown/618780/">The Liberals Who Can’t Quit Lockdown</a>


Sure can:

https://www.theatlantic.com/politics/archive/2021/05/liberals-covid-19-science-denial-lockdown/618780/
12   Patrick   2021 May 6, 3:45pm  

OK, now it's fixed (meaning that it keeps the text of the link you paste in).

Let me know if I broke something else in the meantime. You can just comment here.
13   EBGuy   2021 May 6, 4:00pm  

The Liberals Who Can’t Quit Lockdown

Nice! All systems go. Hat tip to richwicks for & l t and & g t to make this happen.
14   richwicks   2021 May 6, 8:12pm  

Patrick says
OK, now it's fixed (meaning that it keeps the text of the link you paste in).

Let me know if I broke something else in the meantime. You can just comment here.


@Patrick - ever consider making a regression test? That is, send known input to this website, and verify that how that data is presented is consistent, with the exception of any improvements / changes you purposely made?

I find that invaluable. You just make a bunch of small input files, and verify that the output file is the same from one revision to another.
15   Patrick   2021 May 6, 8:38pm  

I should do more of that. Clearly I need it.

Right now, I have just a quick login, post, and comment test that has to pass for me to commit any change to git.
16   richwicks   2021 May 6, 8:55pm  

Patrick says
I should do more of that. Clearly I need it.

Right now, I have just a quick login, post, and comment test that has to pass for me to commit any change to git.


You could use wget/curl to post and pull - the problem would be the login, but I think that can be handled. You could have a page that doesn't require a login, and only allows posts from a particular IP address, and removes the post(s) in 1 hour or so.

I use regression quite often to remove the need for Q/A. It's not that I'm a god of a coder, but a lot of people think I am, just because I have scripts to verify my work so it's rare when I introduce a bug without being aware of it.

Please register to comment:

api   best comments   contact   latest images   memes   one year ago   random   suggestions