Delete redundant spaces after line break while importing HTML
Contents
[
Hide
]
Please use HtmlLoadOptions.DeleteRedundantSpaces property and set it true to delete all the redundant spaces coming after the line break tag. By default, this property is false and redundant spaces are preserved in the output excel files.
Effect of setting the HtmlLoadOptions.DeleteRedundantSpaces property to false and true
The following screenshot shows the effect of setting this property to false and true.
Delete redundant spaces after line break while importing HTML
The following sample code shows the usage of the HtmlLoadOptions.DeleteRedundantSpaces property. Please set it true or false to get the output as shown in the above screenshot.