Skip to content

Excel HTML files with tags inside cells results in extra white spaces #1622

Closed
@KurtMar

Description

When parsing Excel HTML files, the htmldecode function strips new lines from the beginning and end of the cell. If there are HTML elements like DIV or SPAN inside the cell, then new lines before and after the content will be transformed into whitespaces. Here is a jsbin example showing the problem and a possible solution:

https://jsbin.com/muzucuyigo/edit?js,console

The solution of checking for <\s and \s> is not optimal, but is in my opinion better than the current implementation.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions