Skip to content

duplicate matches in one sentence #300

Open
@Istador

Description

Example 1:

wtf('[[Page 1]], [[Page 1]]').sentences(0).html()

Result:

<span class="sentence"><a class="link" href="./Page_1"><a class="link" href="./Page_1">Page 1</a></a>, Page 1</span>

Expected Result:

<span class="sentence"><a class="link" href="./Page_1">Page 1</a>, <a class="link" href="./Page_1">Page 1</a></span>

Example 2:

wtf('Just click on here: [[Page 1|here]] or [[Page 2|here]]').sentences(0).html()

Result:

<span class="sentence">Just click on <a class="link" href="./Page_1"><a class="link" href="./Page_2">here</a></a>: here or here</span>

Expected Result:

<span class="sentence">Just click on here: <a class="link" href="./Page_1">here</a> or <a class="link" href="./Page_2">here</a></span>

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions