8000 Clashes between auto-link and auto-channel · Issue #619 · erming/shout · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Clashes between auto-link and auto-channel #619
Open
@AlMcKinlay

Description

@AlMcKinlay

So, in one of the channels I'm in, it posts a link to xkcd everytime there is a new one. I noticed today that the link was completely messed up.

I'm not even sure why the auto-channel linker is dealing with this. But I think the "<" and ">" are confusing the auto-linker.

The HTML:

<div class="msg message ">
    <span class="time">
        23:24
    </span>
    <span class="from">
        <button class="user" style="color: #00a0de">MehBot</button>
    </span>
    <span class="text">
            xkcdwhatif: Europa Water Siphon <span class="inline-channel" role="button" tabindex="0" data-chan="<<a">&lt;<a< span=""> href="http://what-if.xkcd.com/143&gt;" target="_blank"&gt;http://what-if.xkcd.com/143/&gt;;
    </a<></span></span>
</div>

The message as seen on the client:

06:39 xkcd: Birdsong < href="http://xkcd.com/1635>" target="_blank">http://xkcd.com/1635/>; 

The original message:

[01:39:34] <MehBot> xkcd: Birdsong <http://xkcd.com/1635/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0