Home output html in multiple lines
Reply: 0

output html in multiple lines

user1362 Published in March 24, 2018, 5:44 pm

I'm using Skybrud Social to get Instagram feeds.

The caption I got from the feed is something like below:

Line 1

Line 2

Line 3

When I output it to html it will be

Line 1 Line 2 Line 3

How do I make it so that it display just like the first?

s = CurrentPage;
Skybrud.Social.Umbraco.Instagram.PropertyEditors.OAuth.InstagramOAuthData client = s.ig;
var service = InstagramService.CreateFromAccessToken(client.AccessToken);
var response = service.Tags.GetRecentMedia("invitation",10);
foreach (Skybrud.Social.Instagram.Objects.InstagramMedia mediaig in response.Body.Data)
   <div class="col-md-4">    
       <div class="row" >
           <a class="template" href="@mediaig.Link">
               <div class="col-xs-12 templateIconDiv">
                   <div class="templateIconDivContainer">
                       <img class="templateIcon" 
                   <div class="col-xs-12 templateName">

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303122 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO