Open
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>