MCPcopy 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

35global._ = require('lodash');
36
37function cleanText (text) {
38 if (!text) { return text; }
39
40 return parser
41 .parseFromString(text, "text/html")
42 .body.textContent;
43}
44
45
46function handleError (error = {}) {

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected