Skip to content

How to get the rendered text content of litehtml::element? #436

@Jerry-ojk

Description

@Jerry-ojk

For example:

<h1>
    <a>a     aa</a>
bbb
</h1>

I want get the text of h1 displayed on the browser ("a aa bbb"), but litehtml:: element:: get_text() returns the text "\n a aa\n bbb\n".
May I ask if there is such a function? I don't seem to have found it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions