Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/meetDeveloper/freeDictionaryAPI
/ cleanText
Function
cleanText
app.js:37–43 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
35
global._ = require(
'lodash'
);
36
37
function
cleanText (text) {
38
if
(!text) {
return
text; }
39
40
return
parser
41
.parseFromString(text,
"text/html"
)
42
.body.textContent;
43
}
44
45
46
function
handleError (error = {}) {
Callers
1
app.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected