MCPcopy Index your code
hub / github.com/ether/etherpad / emitCloseTag

Function emitCloseTag

src/node/utils/ExportHtml.ts:192–205  ·  view source on GitHub ↗
(i: string)

Source from the content-addressed store, hash-verified

190
191 // this closes an open tag and removes its reference from openTags
192 const emitCloseTag = (i: string) => {
193 openTags.shift();
194 const spanClass = getSpanClassFor(i);
195 const spanWithData = isSpanWithData(i);
196
197 if (spanClass || spanWithData) {
198 assem.append('</span>');
199 } else {
200 assem.append('</');
201 // @ts-ignore
202 assem.append(tags[i]);
203 assem.append('>');
204 }
205 };
206
207 const urls = padutils.findURLs(text);
208

Callers 1

processNextCharsFunction · 0.85

Calls 3

getSpanClassForFunction · 0.85
isSpanWithDataFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected