kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <= nums.length <= 10<sup> <= nums[i] <= 10<sup> <= target <= 10<sup> #105

Closed sumulige closed 2 years ago

sumulige commented 2 years ago

this is bug:

/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <= nums.length <= 10<sup> <= nums[i] <= 10<sup> <= target <= 10<sup>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <int, int>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <![fig1](https://assets.leetcode-cn.com/solution-static/136/1.PNG),![fig2](https://assets.leetcode-cn.com/solution-static/136/2.PNG),![fig3](https://assets.leetcode-cn.com/solution-static/136/3.PNG)>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <Integer> <Integer>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <= bad <= n <= 2<sup>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <Integer, Integer> <Integer, Integer>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <ListNode*>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"
/usr/local/lib/python3.9/site-packages/genanki/note.py:143: UserWarning: Field contained the following invalid HTML tags. Make sure you are calling html.escape() if your field data isn't already HTML-encoded: <= nums.length <= </span> <= nums[i] <= 10<sup>
  warnings.warn("Field contained the following invalid HTML tags. Make sure you are calling html.escape() if"

01:12:51-hRkrAx

kerrickstaley commented 2 years ago

There isn't enough information here to understand your problem. Please include the code you ran and what you expected it to do.