JSFiddle - React, Tailwind, and code Playground
by taylorbuley
HTML
<h1>Placehold</h1>
<p id="first"></p>
<h1>Replace</h1>
<p id="second"></p>
<h1>Results</h1>
<p id="results"></p>
CSS
h1 {
font-size:18px;
font-family:Georgia;
}
p {
margin:0 0 10px 0;
}
JavaScript
var shortcode_or_anchor_regex = /(?:\[(.*?)\b(?:.*?)(?:\/)?(?:"|')\](?:(.+?)\[\/.*?\])?|(\s*?)<a.*?>([^<]*?)<\/a>(\s*?))/gi;
var replace_items = [];
var placeholder_count = 0;
var text = '<p><a href="http://finapps.forbes.com/finapps/jsp/finance/compinfo/CIAtAGlance.jsp?tkr=c&tab=searchtabquotesdark">Citigroup’s</a> recent announcement of job cuts despite rising earnings and seven consecutive quarters of profits is indicative of the bank’s outlook over the next few quarters and its likely wariness with respect to the ever-increasing litigation against the banking sector. In Q3 2011, Citi beat analyst expectations to report profits of $3.8 billion. Despite its recent growth, the stock has remain depressed for over a year–a trend that a 10-to-1 reverse split in May of this year did not change. The move was supposed to make Citigroup stock eligible for large funds, create more stock stability, and streamline management. Instead, the stock price has taken a beating just like other banks such as <a href="http://finapps.forbes.com/finapps/jsp/finance/compinfo/CIAtAGlance.jsp?tkr=bac&tab=searchtabquotesdark">Bank of America</a> and <a href="http://finapps.forbes.com/finapps/jsp/finance/compinfo/CIAtAGlance.jsp?tkr=gs&tab=searchtabquotesdark">Goldman Sachs</a>. <span id="more-86195"></span></p> <p><a href="http://www.trefis.com/company?hm=c.trefis"><strong>See Full Analysis For Citigroup Here</strong></a></p> <p><strong>Tough Times Ahead</strong></p> <p>Citigroup’s recent move to streamline operations by slashing 3,000 jobs is again an indication that the bank is expecting tough times ahead (See <a href="http://www.trefis.com/stock/c/articles/85897/citi-brings-out-the-axe-to-cut-weight/2011-11-16">Citi Brings Out the Axe to Cut Weight</a>). Certainly troubles in Europe’s bond markets and the threat of contagion would threaten any investment bank. However, Citigroup is more heavily diversified than most investment banks, with...