sr-npm 1.7.1261 → 1.7.1262

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,8 +119,10 @@ async function htmlRichContentConverter(sections,richContentConverterToken,jobNa
119
119
  const richContentObject = {}
120
120
  for (const [sectionTitle, sectionData] of Object.entries(sections)) {
121
121
  if (sectionData.text) {
122
+ // Strip span tags but keep their content
123
+ const cleanedHtml = sectionData.text.replace(/<\/?span[^>]*>/gi, '');
122
124
  const raw = JSON.stringify({
123
- content: sectionData.text,
125
+ content: cleanedHtml,
124
126
  });
125
127
  const requestOptions = {
126
128
  method: 'post',
@@ -137,8 +139,8 @@ async function htmlRichContentConverter(sections,richContentConverterToken,jobNa
137
139
  );
138
140
  if (response.ok) {
139
141
  const data = await response.json();
140
- // const richContentWithSpacing=addSpacingToRichContent(sectionData.text,data.richContent.richContent);
141
- const richContentWithSpacing=addEmptyParagraphsBetweenConsecutive(sectionData.text,data.richContent.richContent,jobName);
142
+ // const richContentWithSpacing=addSpacingToRichContent(cleanedHtml,data.richContent.richContent);
143
+ const richContentWithSpacing=addEmptyParagraphsBetweenConsecutive(cleanedHtml,data.richContent.richContent,jobName);
142
144
  richContentObject[sectionTitle] = richContentWithSpacing
143
145
  }
144
146
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1261",
3
+ "version": "1.7.1262",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {