Skip to content

Option to replace stripped HTML tags with a (single) space #51

@PitWenkin

Description

@PitWenkin

Hi,

in order to prevent non-sense strings after stripping all HTML it would be nice if there was an option to replace stripped tags with a space. Something similar as create_newlines

Example:

<table>
<thead><tr><th>Column1</th><th>Column2</th><th>Column3</th></tr></thead>
<tbody><tr><td>Line 1 1</td><td>Line 1 2</td><td>Line 1 3</td></tr>
<tr><td>Line 2 1</td><td>Line 2 2</td><td>Line 2 3</td></tr></tbody>
</table>

results in:
Column1Column2Column3Line 1 1Line 1 2Line 1 3Line 2 1Line 2 2Line 2 3

Something like
Column1 Column2 Column3 Line 1 1 Line 1 2 Line 1 3 Line 2 1 Line 2 2 Line 2 3
would be more readable/usable.

Being able to define if each HTML tag is replaced by a space, or multiple consecutive tags are replaced by single space would be perfect.

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