{this.props.blockLabel}
\n {this.getItems()}\n{description}
\n{stripHtml(innerHTML.key)}
\n ) : null;\n};\n\nclass DataList extends Component {\n constructor(props) {\n super(props);\n\n if (props.paginate) {\n this.state = {\n currentPage: 1,\n pageCount: Math.ceil(props.items.length / props.pageSize),\n };\n }\n this.trackFPTArticleLink = this.trackFPTArticleLink.bind(this);\n }\n\n componentWillReceiveProps(props) {\n this.setState({\n currentPage: 1,\n pageCount: Math.ceil(props.items.length / props.pageSize),\n });\n }\n\n // Return search item title\n getItemTitle(title) {\n if (typeof title !== 'string') {\n return '';\n }\n\n // Remove inline style in the title for HTML title\n return this.props.HTMLTitle ? Page.getHTMLElement({ message: title.replace(/style=\"(.*?)\"/gi, ''), useHTML: true }) : title;\n }\n\n // This Method helps to return list of items.\n getListItems() {\n const endIndex = (this.state.currentPage * this.props.pageSize);\n const beginIndex = (endIndex - this.props.pageSize);\n const items = this.props.items.slice(beginIndex, endIndex);\n /* eslint-disable react/no-danger */\n return (\n{createMarkup(item.description)}
\n \n