Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HubSpot/draft-convert
/ sanitizeDraftText
Function
sanitizeDraftText
src/convertFromHTML.js:97–99 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
95
};
96
97
const
sanitizeDraftText = input => {
98
return
input.replace(REGEX_BLOCK_DELIMITER,
''
);
99
};
100
101
function
getEmptyChunk() {
102
return
{
Callers
1
convertFromHTMLtoContentBlocks
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…