Index: document/src/reducer/linkFetchReducer.jsx =================================================================== diff -u -r7a06d3dd8d4b01bb052b5a0c080f4effd8ea3349 -r23907ac2479dd916eacc374dffc7b88381a488bd --- document/src/reducer/linkFetchReducer.jsx (.../linkFetchReducer.jsx) (revision 7a06d3dd8d4b01bb052b5a0c080f4effd8ea3349) +++ document/src/reducer/linkFetchReducer.jsx (.../linkFetchReducer.jsx) (revision 23907ac2479dd916eacc374dffc7b88381a488bd) @@ -47,6 +47,8 @@ const htmlString = response.data; const parsedHtml = parse(htmlString, { replace: (domNode) => { + // console.log(domNode.name === "section") + // console.log(domNode) if (domNode.name === "img") { const savedSrc = domNode.attribs.src return ( } + if (domNode.name === "section" && domNode.attribs.id === "bo_v_info") { + return
+ } + if (domNode.name === "div" && domNode.attribs.id === "bo_v_top") { + return + } if (domNode.name === "html" && domNode.attribs.lang.toLowerCase() === "ko") { return domNode.name = "div" } @@ -71,12 +79,14 @@ // Return the updated div return domNode; } - if (domNode.name === "div" && domNode.id === "topicon") { - // Add the "hidden" class 하단에 로더 문구 숨김 + if (domNode.name === "div" && domNode.attribs.id === "topicon") { + // Add the "hidden" class 하단에 topicon 숨김 domNode.attribs.class += ' hidden'; - // Return the updated div return domNode; } + if (domNode.name === "span" && domNode.attribs.class === "cmt_more") { + return + } }, }); dispatch({ type: FETCH_SUCCESS, payload: parsedHtml });