Skip to content

Commit

Permalink
fix function get_page_title_link(page_data, display_text, options)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Jun 21, 2024
1 parent 7b20f1b commit e72d10e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/net/wiki/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -2490,10 +2490,11 @@ function module_code(library_namespace) {
if (need_escape) {
title = ':' + title;
}

// TODO: for template transclusion, use {{title}}
return '[[' + title + (display_text && display_text !== title ? '|'
// library_namespace.Unicode_to_HTML()
+ display_text.replace(/[\[\]]/g, function(char) {
+ String(display_text).replace(/[\[\]]/g, function(char) {
return '&#' + char.charCodeAt(0) + ';';
}) : '') + ']]';
}
Expand Down

0 comments on commit e72d10e

Please sign in to comment.