tab2opf
tab2opf copied to clipboard
Using HTML in the definition
Hello and thanks for your tool :)
In your code there are the following lines:
defn = defn.replace("\\\\","\\").\
replace(">", "\\>").\
replace("<", "\\<").\
replace("\\n","<br/>\n").\
strip()
This will of course break any HTML that is in the word definition (<p>
becomes \<p\>
, etc). So my question is: what's the purpose of the above code? I removed it and was still able to generate a dictionary that looked okay on my Kindle.
Many thanks, nyg