Skip to content

Trim whitespace from content[html] #135

Closed
@sknebel

Description

@sknebel

The following

<div class="h-entry">
<div class="e-content">
  this should have whitespace trimmed


</div>
</div>

is parsed as

"content": [
                    {
                        "html": "\r\n  this should have whitespace trimmed\r\n\r\n\r\n",
                        "value": "this should have whitespace trimmed"
                    }

whereas according to the parsing specification whitespace at beginning and end of the HTML content should be trimmed as well:

html: the innerHTML of the element by using the HTML spec: Serializing HTML Fragments algorithm, with leading/trailing whitespace removed.

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