Skip to content

Example: html string to plain text #45

@sowinski

Description

@sowinski

Hi,

can someone help me to write some code to transform a html string into a plain text string?

import pandoc
html = "<p>This is a test</p>"
text = pandoc.magic(html)
print(text)
>>This is a test

Would be nice to see more examples in the docs

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