Skip to content

inline_fragment not worked for python #388

@PAvel00m

Description

@PAvel00m

Hi, when passing valid html to a function, an empty string is returned

Python 3.8.18
MacOS Sequoia 15.0

template = """
        <html>
            <head></head>
            <body>
                <table>
                    </tbody>
                        <tr>
                            <th>Test</th>
                            <td>text</td>
                        </tr>
                    </tbody>
                </table>
            </body>
        </html>
"""

rendered_content = css_inline.inline_fragment(
    template,
    """
    body {
        font-family: Arial, sans-serif;
    }
    
    table, th, td {
        border: 1px solid black;
        border-collapse: collapse;
    }
    """
)

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