Skip to content

Using HTML in the definition #2

Description

@nyg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions