mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-26 06:22:26 -04:00
Escape ' character in HTML attribute titleid of every title listed
Fixes #93 (articles with this character in their name could not de displayed)
This commit is contained in:
parent
ea4d62c7de
commit
2bea2ca188
@ -477,7 +477,7 @@ define(['jquery', 'title', 'archive', 'util', 'cookies','geometry','osabstractio
|
||||
distanceFromHereHtml = " (" + distanceKm + " km " + cardinalDirection + ")";
|
||||
}
|
||||
|
||||
titleListDivHtml += "<a href='#' titleid='" + title.toStringId()
|
||||
titleListDivHtml += "<a href='#' titleid='" + title.toStringId().replace(/'/g,"'")
|
||||
+ "' class='list-group-item'>" + title.getReadableName()
|
||||
+ distanceFromHereHtml
|
||||
+ "</a>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user