I use reactJS to render an email response. With email templates that I tried with dangerouslySetInnerHtml ReactHtmlParser, the problem is always in Chrome. Firefox always shows the full HTML template, but in Chrome the HTML to be analyzed is incomplete, even if I display it in the console using console.log
Always in Chrome with dangerouslySetInnerHtml or ReactHtmlParser the string is incomplete, but in Firefox it is complete and everything works fine.
This is the code to view the email:
Where str is the HTML code to be rendered
This is a raw edition of str in Chrome that lacks all styles and images:
55% OFF until Monday, January 20th UPGRADE TO START LEARNING https://www.cybrary.it/upgrade/ ------------------------------------------------- Access all Career Path programs with Your Cybrary Insider Pro Membership It's easy! Pick your desired career and start learning the exact skills needed for that job. Become A Network Engineer https://www.cybrary.it/catalog/career-path/network-engineer/syllabus/ Become A Soc Analyst https://www.cybrary.it/catalog/career-path/soc-analyst-level-1/syllabus/ Become A Penetration Tester https://www.cybrary.it/catalog/career-path/penetration-tester/syllabus/ Become A Cyber Security Engineer https://www.cybrary.it/catalog/career-path/cyber-security-engineer/ VIEW ALL CAREER PATHS https://www.cybrary.it/catalog/career-paths/ © 2019 Cybrary, Inc. All Rights Reserved. 5801 University Research Court STE 150, College Park, MD 20740 If you no longer wish to receive these emails you may unsubscribe here: https://pages.cybrary.it/UnsubscribePage.html?mkt_unsubscribe=1&mkt_tok=eyJ…Z4OWF0SEFTSStLendsbHU5YlprTEF4S05qNTl6VHBzcElKZFhBU29uYWY3RGhVQkV4L1FuRiJ9.
And this is "part" of the same edition of the same email, but in Firefox, which plays perfectly in the browser: