Clean up HTML import from nbsp chars
This commit is contained in:
@@ -133,7 +133,7 @@ class HtmlParser:
|
||||
td.smooth()
|
||||
|
||||
return {
|
||||
'text': td.string,
|
||||
'text': td.string.replace('\xa0', ' ').strip(),
|
||||
'meta': meta
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
@@ -60,7 +60,7 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
@@ -86,7 +86,7 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
@@ -112,33 +112,33 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"meta": null,
|
||||
"text": "Adv\n\u00a0"
|
||||
"text": "Adv"
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "Beg\n\u00a0"
|
||||
"text": "Beg"
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "Beg\n\u00a0"
|
||||
"text": "Beg"
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "Beg\n\u00a0"
|
||||
"text": "Beg"
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "Beg\n\u00a0"
|
||||
"text": "Beg"
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0\n\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
@@ -164,7 +164,7 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
[
|
||||
@@ -190,7 +190,7 @@
|
||||
},
|
||||
{
|
||||
"meta": null,
|
||||
"text": "\u00a0"
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user