title: Using TTTAttributedLabel to format html code in UILabel
body: <p>I'm using <code>TTTAttributedLabel</code> to show <code>HTML</code> code in <code>UILabel</code> that contains code (like <code>bold</code>, <code>italic</code> etc) and links.</p>
  
  <p>This is my code</p>
  
  <pre><code>- (void)fetchText
  {
      NSMutableAttributedString * tmp = [[NSMutableAttributedString alloc] initWithData:self.genericInfo.getLocalizedDescription.toData
                                                                                options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType,
                                                                                          NSCharacterEncodingDocumentAttribute:@(NSUTF8StringEncoding)}
                                                                     documentAttributes:nil
                                                                                  error:nil];
  
      [self.labelText setText:tmp afterInheritingLabelAttributesAndConfiguringWithBlock:^ NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
  
          [mutableAttributedString addAttribute:NSFontAttributeName value:FONT_REGULAR(18.0f) range:NSMakeRange(0, tmp.length)];
  
          return mutableAttributedString;
      }];
  }
  </code></pre>
  
  <p>The problem is I can't see any HTML bold or italic, but I can see only links.</p>
  
  <p>There is a problem with my code or is a bug of <code>TTTAttributedLabel</code>?</p>
  
  <p>Here the HTML contained in <code>genericInfo.getLocalizedDescription</code></p>
  
  <pre><code>&lt;p&gt;&lt;strong&gt;By subway&lt;/strong&gt;&lt;br /&gt;
  Take the Red line and get off at Rho Fiera Milano Expo stop.&lt;br /&gt;
  web: &lt;a href="file:///C:/Users/lorinim/AppData/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.Outlook/22RCQI31/atm-mi.it"&gt;atm-mi.it&lt;/a&gt;&lt;br /&gt;
  download: &lt;a href="http://h-stage.expopage.net/sites/default/files/files/mappametropolitana.pdf"&gt;underground map&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;By car&lt;/strong&gt;&lt;br /&gt;
  From the motorways A7-Genoa, A1 Bologna and A4-Turin take ring road west (tangenziale ovest) and go to fieramilano exit.&lt;br /&gt;
  From the A4-Venice motorway take the Pero-fieramilano exit.&lt;br /&gt;
  From the motorways A8-Varese and A9-Como at the Milano nord junction take the A4-Venice and go to fieramilano exit.&lt;br /&gt;
  From Milan follow the road signs to the motorways A8 Varese or A4 Turin and take the fieramilano exit.&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;AREA C&lt;/strong&gt;&lt;br /&gt;
  Restrictive regulations will be imposed on cars entering downtown Milan (Area C - limited traffic area (Ztl).&lt;/p&gt;
  
  &lt;p&gt;web: &lt;a href="http://www.comune.milano.it/wps/portal/ist/it"&gt;areac.it&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;By taxi&lt;/strong&gt;&lt;br /&gt;
  It is possible to reserve a taxi by calling one of the the following numbers:&lt;br /&gt;
  +39 02.8585 +39 02.6969 +39 02.4040 +39 02.4000 +39 02.5353&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;By train&lt;/strong&gt;&lt;br /&gt;
  Milan exhibition venue is reachable by railway Passante, suburban lines S5 (Varese-Varese-Milano Passante-Treviglio) and S6 (Novara-Milano Passante -Treviglio); S5 and S6 stop directly in Rho Fiera Milano Expo Station.&lt;br /&gt;
  S5 and S6 lines are accessible from the heart of Milan in the following stations: Certosa, Villapizzone, Lancetti, Porta Garibaldi sotterranea, Repubblica, Porta Venezia, Dateo and Porta Vittoria.&lt;br /&gt;
  Further information, timetable and tickets purchasing: trenord.it/it/in-fiera.aspx&lt;br /&gt;
  Several inter-regional trains on the Turin-Novara-Milan line stop at the Rho Fiera Milano Expo station.&lt;br /&gt;
  A shuttle service connects the trains stations Rho and Rho Fiera Milano Expo.&lt;/p&gt;
  
  &lt;p&gt;&lt;strong&gt;By plane&lt;/strong&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;em&gt;From LINATE Airport&lt;/em&gt;&lt;br /&gt;
  Bus 73 and X73; get off in Piazza San Babila and take the subway, Red line, to Rho Fiera Milano Expo.&lt;br /&gt;
  During the exhibition days a bus transfer from/to Linate Airport is available:&lt;br /&gt;
  - departing from the airport, domestic arrivals area, from 8:30 to 13:30 and from 15:00 to 18:00, every hour.&lt;br /&gt;
  - departing from fieramilano, East Gate bus parking area, from 9:30 to 12:30 and from 14:00 to 19:00, every hour.&lt;/p&gt;
  
  &lt;p&gt;&lt;em&gt;From MALPENSA Airport&lt;/em&gt;&lt;br /&gt;
  Take Malpensa Express train (Terminal 1 railway station) , directed to Milano Centrale Station &amp;ndash; alight at Milano Porta Garibaldi and take Suburban railway lines S5 or S6 (13 minutes journey )&lt;br /&gt;
  Take Malpensa Express train (Terminal 1 railway station) , directed to Milano Cadorna Station (29 minutes journey on non stop trains). From there take the subway, Red line, to Rho Fiera Milano Expo.&lt;/p&gt;
  
  &lt;p&gt;Further information, timetable and tickets purchasing: &lt;a href="http://www.trenord.it/"&gt;www.trenord.it&lt;/a&gt; or &lt;a href="http://www.malpensaexpress.it/"&gt;www.malpensaexpress.it/&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;&lt;em&gt;From ORIO AL SERIO Airport&lt;/em&gt;&lt;br /&gt;
  Direct bus transportation available only during events:&lt;br /&gt;
  - Orio Shuttle (&amp;euro; 12.00/one way - &amp;euro; 20.00 round trip): departures from the airport, Arrival area, bus shelter 1, at 8:45, 9:15 and 10:30. Departures from Fiera Milano, East gate bus parking area, at 15:30, 16:30 and 18:00.&lt;/p&gt;
  
  &lt;p&gt;web: &lt;a href="http://www.orioshuttle.com/"&gt;www.orioshuttle.com&lt;/a&gt;&lt;/p&gt;
  
  &lt;p&gt;Orio bus Express (&amp;euro; 11.50/one way - &amp;euro; 19.50 round trip):&lt;br /&gt;
  departures from the airport, Arrivals, bus shelter 3/4, at: 8:30, 10:15 and 11:00. Departures from Fiera Milano at 15:15, 16:00 and 18:00 from East Gate bus parking area.&lt;/p&gt;
  
  &lt;p&gt;web: &lt;a href="http://www.autostradale.it/"&gt;autostradale.it&lt;/a&gt;&lt;/p&gt;
  </code></pre>