JSFiddle - React, Tailwind, and code Playground

by taylorbuley

HTML

<div id="results"></div>

JavaScript

var reggy = /(?:(\s*?)\[(.*?)\b(?:.*?)(?:(?:\/))?(?:"|')\](?:(.+?)\[\/.*?\])?(\s*?)|(\s*?)<a.*?>([^<]*?)<\/a>(\s*?))/gi;
var text = '<p>GE Aviation, a subsidiary of <a href="http://finapps.forbes.com/finapps/jsp/finance/compinfo/CIAtAGlance.jsp?tkr=ge&amp;tab=searchtabquotesdark">General Electric</a>, is benefiting from billion of dollars worth orders won by aircraft manufacturers like Boeing and Airbus. In the recently held Dubai Air Show, GE and its joint venture won $12 billion worth orders and services with a majority obtained from Boeing 777 aircraft engines for Emirates airlines.<sup> [<a id="identifier_0_82467" class="footnote-link footnote-identifier-link" title="$12B order for GE Aviation, Cincinnati.com, Nov 14, 2011" href="#footnote_0_82467">1</a>]</sup> GE Aviation produces, sells and services jet engines, turboprop and turbo shaft engines, and related replacement parts for use in military and commercial aircraft.</p> <p>We estimate that the Aviation business constitutes 18% of GE’s stock value, and we expect the company to maintain its market position in the aviation industry as air travel demand in Middle-Eastern regions and other emerging countries rise and as GE wins more orders and forges partnerships with aircraft makers and airlines, respectively. It mainly competes with e Pratt &amp; Whitney, Rolls-Royce, Safran, Honeywell in the aviation industry.</p> <p><strong>Our <a href="../../company?hm=GE.trefis">complete analysis for General Electric’s stock is here</a>.</strong></p> <p style="text-align: center;"><strong></strong><span style="color: red;">[trefischart comp=community ticker=GE width=350 cadate=2011-10-31 driver=0159 caweekly=1]</span></p> <p><strong>Rising Air Travel Demand from Emerging Economies</strong></p> <p>While the aviation industry has suffered from the global weak economic conditions, emerging markets like India and China have led a revival in the sector. We expect the recovery to continue in spite of macroeconomic weakness...