($el)
| 283 | } |
| 284 | |
| 285 | replaceCite($el) { |
| 286 | let that = this; |
| 287 | let hContent = $el.prop("outerHTML"); |
| 288 | let cites = $el.find('cite'); |
| 289 | if (cites.length) { |
| 290 | cites.each(function (index, el) { |
| 291 | let outHtml = that.$(el).prop("outerHTML"); |
| 292 | let text = that.$(el).text(); |
| 293 | hContent = hContent.replace(outHtml, `*${text}*`); |
| 294 | }); |
| 295 | } |
| 296 | return hContent; |
| 297 | } |
| 298 | |
| 299 | replaceEm($el) { |
| 300 | let that = this; |