UNPKG
@hedgedoc/html-to-react
Version:
latest (2.1.1)
2.1.1
2.1.0
2.1.0-dev
2.0.1-esm
2.0.0
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
Parse HTML into React components
hedgedoc/hedgedoc
@hedgedoc/html-to-react
/
dist
/
esm
/
elementTypes
/
ProcessTextNode.js
5 lines
•
166 B
JavaScript
View Raw
1
2
3
4
5
import
{ isText }
from
'domhandler'
;
export
function
processTextNode
(
node
) {
return
isText
(node) ? node.
data
:
null
; }
//# sourceMappingURL=ProcessTextNode.js.map