tab2opf icon indicating copy to clipboard operation
tab2opf copied to clipboard

Using HTML in the definition

Open nyg opened this issue 6 years ago • 1 comments

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

nyg avatar Mar 07 '18 20:03 nyg