Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/product-merchant-feed-pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import initConfig from './steps/init-config.js';
import fetchContent from './steps/fetch-content.js';
import { setLastModified } from './utils/last-modified.js';
import { compute404Keys } from './steps/set-cache-headers.js';
import { stripHTML } from './steps/utils.js';

/**
* @param {string} key
Expand Down Expand Up @@ -91,7 +92,7 @@ const feedEntry = (state, req, entry) => `
<g:id>${entry.id}</g:id>
<g:title>${entry.title ?? ''}</g:title>
<g:description>
${entry.description ?? ''}
${stripHTML(entry.description ?? '')}
</g:description>
<g:link>${entry.link ?? ''}</g:link>
<g:image_link>${relToAbsLink(state, req, entry.image_link)}</g:image_link>
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/index/merchant-feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
<g:id>undefined</g:id>
<g:title>5-Speed Immersion Blender 4-Piece Deluxe Bundle</g:title>
<g:description>
4-Piece Deluxe Immersion Blender Bundle
4-Piece Deluxe Immersion Blender Bundle
</g:description>
<g:link></g:link>
<g:image_link></g:image_link>
Expand Down
Loading