File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
nestjs-libraries/src/integrations/social Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ export const stripHtmlValidation = (
139139 plain = false ,
140140 convertMentionFunction ?: ( idOrHandle : string , name : string ) => string
141141) : string => {
142-
143142 if ( plain ) {
144143 return val ;
145144 }
@@ -169,6 +168,8 @@ export const stripHtmlValidation = (
169168 } )
170169 . replace ( / & a m p ; / gi, '&' )
171170 . replace ( / & n b s p ; / gi, ' ' )
171+ . replace ( / & g t ; / gi, '>' )
172+ . replace ( / & l t ; / gi, '<' )
172173 . replace ( / < h 2 > ( [ . \s \S ] * ?) < \/ h 2 > / g, ( match , p1 ) => {
173174 return `<h2>## ${ p1 } </h2>\n` ;
174175 } )
@@ -209,7 +210,7 @@ export const stripHtmlValidation = (
209210 . replace ( / < p [ ^ > ] * > / gi, '\n' )
210211 . replace ( / < \/ p > / gi, '' )
211212 . replace ( / & g t ; / gi, '>' )
212- . replace ( / & l t ; / gi, '<' )
213+ . replace ( / & l t ; / gi, '<' ) ;
213214
214215 if ( none ) {
215216 return striptags ( html ) ;
Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ export class InstagramProvider
618618 ) . json ( ) ;
619619
620620 arr . push ( {
621- id : firstPost . id ,
621+ id : post . id ,
622622 postId : commentId ,
623623 releaseURL : linkGlobal ,
624624 status : 'success' ,
You can’t perform that action at this time.
0 commit comments