Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy.Globals.stripHtml

$
0
0

Hi,

I'm using the following code to display the details of the news. But in showing incorrect characters for detail news that Turkish characters. Should I not take the news directly?

// TODO: // Add comments

$.args = arguments[0] || {}; var standardWinView = $.args.standardWinView; var content = $.args.content;

var byline = content.byline; // var commentscount = content.commentscount; var date = moment(content.sysPublishDate).format('MMMM Do YYYY'); var image = Alloy.Globals.dotcms.url + '/contentAsset/image/' + content.inode + '/image/byInode/1/filter/Resize/resize_w/400'; var body = Alloy.Globals.stripHtml(content.body);

var title = content.title;

$.newByLine.text = byline; //$.newCommnets.text = commentscount; $.newDate.text = date; $.newImage.image = image; $.newStory.text = body; $.newTitle.text = title;

// Opening the window when all the content is ready Alloy.Globals.openWindow(standardWinView);


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>