Fix bug 580 #188
|
@ -93,7 +93,9 @@ function parseWord(element) {
|
||||||
const word = element
|
const word = element
|
||||||
.querySelector("a.btn.btn-light[role=button]") // 获取当前词频元素的词汇元素
|
.querySelector("a.btn.btn-light[role=button]") // 获取当前词频元素的词汇元素
|
||||||
.innerText // 获取词汇值;
|
.innerText // 获取词汇值;
|
||||||
const freq = Number.parseInt(element.querySelector(`#freq_${word}`).innerText); // 获取词汇的数量
|
let freqId = `freq_${word}`;
|
||||||
|
freqId = CSS.escape(freqId); // for fixing bug 580, escape the apostrophe in the word
|
||||||
|
const freq = Number.parseInt(element.querySelector("#"+freqId).innerText); // 获取词汇的数量
|
||||||
return {
|
return {
|
||||||
word,
|
word,
|
||||||
freq
|
freq
|
||||||
|
|
Loading…
Reference in New Issue