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

Function emitOpenTag

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

Source from the content-addressed store, hash-verified

173 };
174
175 const emitOpenTag = (i: string) => {
176 openTags.unshift(i);
177 const spanClass = getSpanClassFor(i);
178
179 if (spanClass) {
180 assem.append('<span class="');
181 assem.append(spanClass);
182 assem.append('">');
183 } else {
184 assem.append('<');
185 // @ts-ignore
186 assem.append(tags[i]);
187 assem.append('>');
188 }
189 };
190
191 // this closes an open tag and removes its reference from openTags
192 const emitCloseTag = (i: string) => {

Callers 1

processNextCharsFunction · 0.85

Calls 2

getSpanClassForFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected